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 :-
I know this scanner function
ReplyDeletethats good
Delete