We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2646129 commit f83ff9fCopy full SHA for f83ff9f
Java Basics/Taking Input From User/input.java
@@ -0,0 +1,11 @@
1
+import java.util.Scanner;
2
+
3
+class input{
4
+ public static void main(String[] args) {
5
+ Scanner sc = new Scanner(System.in);
6
+ System.out.println("Enter the Number: ");
7
+ int n = sc.nextInt();
8
+ System.out.println("Number: " + n);
9
+ sc.close();
10
+ }
11
+}
0 commit comments