print
Advertisment
Advertisment

How to Add two numbers

Example

class Add_Number{

 public static void main(String[] args) {
   
   int x = 10;
   int y = 7;

   int z = x+y;

   System.out.println(z);
   
   }
 }    




Output :

 17  
  
Advertisment
Advertisment
arrow_upward