write a program to print details about you that is your name and age using variables
Answers
Answered by
2
You can use MS excel as well as power point
cosmos360:
Thank you so much
Answered by
7
Answer:
public class First
{
void display ( )
{
String name = "Princy" ;
int age = 16 ;
System.out.println ("My name is " + name) ;
System.out.println ("My age is" + age) ;
}
}
Output produced is:
My name is Princy
My age is 16
Variables:
Variables represent named storage locations, whose values can be manipulated during program run. For instance, to store name of a student and marks of a student during a program run, We require named storage locations variables, called as symbolic variables, serve the purpose.
Similar questions