Sum of two elements in Java

Suman Barik
0

 public class MyClass {

    public static void main(String args[]) {

      int x=10;

      int y=25;

      int z=x+y;


      System.out.println("Sum of x+y = " + z);

    }

}

Post a Comment

0Comments
Post a Comment (0)