0
Write a program to calculate and show the sum of two whole numbers
w
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);
}
}
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);