Computer Science, asked by Anonymous, 1 month ago

Write a program to print details about you i.e., your name and age using variables.​

Answers

Answered by gsudhir4868
2

Answer:

public class First

{

void display ( )

{

String name = "Prince" ;

int age = 16 ;

System.out.println ("My name is " + name) ;

System.out.println ("My age is" + age) ;

}

}

Plz Brainlist my Answer..

Answered by MrRdx
322

Answer :

public class First

{

void display( )

{

String name = "Rohan" ;

int age = 16 ;

System. out. println ("My name is" + name) ;

System.out.println("My age is" + age) ;

}

}

___________________

Output :

My name is Rohan

My age is 16

──────⊱◈◈◈⊰──────

Similar questions