Computer Science, asked by Sayani07, 1 year ago

write a program in java to input a number from the user and print it​

Answers

Answered by sweta6014
2

..

I also want this... plz anyone

Answered by pradeeptiwari555
1
import Java.util.Scanner;
Class InputNumber {
public static void main(String[] args)
{
int number;
System.out.println(“Enter the number:”);
Scanner sc = new Scanner(System.in);
number = sc.nextInt();
System.out.println(number);
}
}
Similar questions
Math, 6 months ago