To add two number where numbers are already given or initialized

Program :

class Add
{
public static void main (String [] args)
{
int a,b,c=0;        //  declaration
a= 12;
b=23;
c= a + b;
System.out.println("The addition of two number is:" +c);
}
}

No comments:

Post a Comment