class Addition { int a=10; int b=20; short s; byte b1; long l; float f; double d; void add() { int c=a+b; System.out.println("The value of c is :"+c); } public static void main(String args[]) { Addition addition=new Addition(); addition.add(); } }
mujju0508 / java_addition_prog Goto Github PK
View Code? Open in Web Editor NEWjava prog for addition of 2 numbers