Take input through user in JAVA


Flowchart:-




 Programs :-


import java.util.Scanner;

public class first {

public static void main(String arg[])

{

int a;

System.out.println("enter the number which you want to print");

Scanner obj=new Scanner(System.in);

a=obj.nextInt();

System.out.println(a);

}

}

 Output :-









2 comments:

theengineerschoice01@gmail.com