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
En esta página del sitio puede ver el video en línea print name and age using by Scanner | | print the age and name in java program de Duración hora minuto segunda en buena calidad , que subió el usuario STUDY PATHSALA 16 marzo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 824 veces y le gustó 6 a los espectadores. Disfruta viendo!