Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Write a java program to print a number from the user

import java.util.Scanner;public class Main{public static void main(String args[]){int number;Scanner scan = new Scanner(System.in);System.out.print("Enter the number ");number = scan.nextInt();System.out.print("Entered number " +number);}}
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Write #java #program #print #number #user
ADD COMMENT
Topic
Name
8+5 =