PROGRAM TO PRINT SUM OF THREE NUMBERS

//PROGRAM TO PRINT SUM OF THREE NUMBERS//
class Sum
{
public static void main(String args[ ])
{
int a,b,c,s;
a=10;
b=20;
c=30;
s=a+b+c;
System.out.println(“sum of a,b and c is: “+s);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *