How two subtract two numbers in java

                                public class Sub{

      public static void main(String args[]){

            int num1=10;

             int num2=5;

             int z= num1-num2;

          System.out.print(z);

     }}

No comments:

Post a Comment

How to install java   How to add two numbers in java How to compile the program How to subtract two numbers in java How to multiply two numb...