blob: b3afc79834792522f6a07c2055d65afc2031768a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Listing0203.java */
import java.util.Scanner;
import java.io.IOException;
public class Listing0203
{
public static void main(String[] args)
throws IOException
{
int a, b, c;
Scanner scanner = new Scanner(System.in);
System.out.println("Bitte a eingeben: ");
a = scanner.nextInt();
System.out.println("Bitte b eingeben: ");
b = scanner.nextInt();
c = a + b;
System.out.println("a+b="+c);
}
}
|