Showing posts with label Print the input!. Show all posts
Showing posts with label Print the input!. Show all posts

Sunday, June 19, 2022

Print the input!

Problem Statement
Take an integer as input and print it.



 import java.io.*; // for handling input/output

import java.util.*; // contains Collections framework


class Main {
    public static void main (String[] args) {
                    
                      Scanner sc=new Scanner(System.in);
                      int n=sc.nextInt();
                      System.out.println(n);
    }
}

ads vert

Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody

  Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody < table >      < thead >    ...