Computer Science, asked by eknathwaghmare80, 6 hours ago

Write a java program to accept your name and age through keyboard and

display the same.​

Answers

Answered by KesavanCSE
1

Answer:

class detsils{

public static void main(String[] args) {

Scanner ip =new Scanner (System.in);

String name=ip.nextLine();

int age=ip.nextInt();

System.out.println("Name:"+name+"Age is"+age);

}

}

Similar questions