class initialize
{public static void main (String arg[])
{
int a; //declare
a=2; //initialize
int b=4; //declare and initialize
c=a+b; //add variable
System.out.print("The total of two variable =");
System.out.print(c); //Display variable
}}
{public static void main (String arg[])
{
int a; //declare
a=2; //initialize
int b=4; //declare and initialize
c=a+b; //add variable
System.out.print("The total of two variable =");
System.out.print(c); //Display variable
}}
0 comments:
Post a Comment