hlw everyone
I am Lokesh. Welcome to our youtube channel"Mirganj Study"
About this video:
this video is help you to print the name and age from user * hiw to use Scanner class*
// Accept the User's name, age and print in following manner
// Ex - Hello pintu, you are 12 years old.
public class Ques3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the your name:");
String name = sc.nextLine();
System.out.println("Enter your age");
int age = sc.nextInt();
System.out.println("Hello "+name+" , you are "+age+" years old");
}
}
Queries Solved:
Let's start your preparation with Mirganj Study
Visit playlist of Chemistry:
Visit playlist of Maths:
Subscribe my channel #Mirganj_Study
If you guys support this channel then we will also provide Full tutorial videos of class 10th and 12th Maths,Physics and Chemistry.
And also upload Programming videos of C,C++,java,python and all other programming language with basics . AND also provide notes of all related videos on this channel.
Some other Social links:
Visit my