Friday, August 9, 2019

Sum of 2 number in JAVA

Sum of 2 number in JAVA :-

class Sum
{
 public static void main(String[] args)
 {
   int a=10,b=20,c;
   c=a+b;
   System.out.println("Sum= "+c);
 }
}

No comments:

Post a Comment