0

Write a program to calculate and show the sum of two whole numbers

w

15th Feb 2017, 11:08 AM
Chiku singh
2 Antworten
+ 2
//Freebie import java.util.Scanner; class MyClass{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); System.out.println(num1+num2); } }
15th Feb 2017, 11:30 AM
Ghauth Christians
Ghauth Christians - avatar
0
class sum{ public static void main (String srgs []) { int a,b,c; int a=500; int b=600; int c=a+b; System.out.print ("sum="+c);
19th Feb 2017, 4:27 AM
Priyesh Singh