Write a program to print details about you i.e., your name and age using variables.
Answers
Answered by
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
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