import java.io.*;
public class First {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
System.out.println("Enter your number");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(br.readLine());
System.out.println("The value of \"i\" is " +i);
}
}
public class First {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
System.out.println("Enter your number");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(br.readLine());
System.out.println("The value of \"i\" is " +i);
}
}
output:-
Enter your number
10
The value of "i" is 10
No comments:
Post a Comment