Showing posts with label Simple Input- Integer. Show all posts
Showing posts with label Simple Input- Integer. Show all posts

Sunday, June 19, 2022

 

Simple Input- Integer

Problem Statement
Given an integer N, your task is to take input of the given integer 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 >    ...