Saturday, 4 October 2014

java program to add two numbers if both numbers are greater than 10 designed by pratik




class myadd
{
public static void main(String args[])
{
int num1=20,num2=40,add;
if(num1>10 && num2>10)
{
add=num1+num2;
System.out.print("\n\n\t\tThe Addition is = "+add);
}
}
}


No comments:

Post a Comment