added all past projects

This commit is contained in:
Hannes
2017-11-10 00:13:57 +01:00
parent 5f63f0c599
commit 8c94608805
1391 changed files with 109456 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package addition_2;
import java.util.Scanner;
public class Addition_2
{
public static void main(String[] args)
{
Scanner scan = new Scanner( System.in );
int summand1=0, summand2=0, summe=0;
System.out.println("Geben Sie nun den ersten Summanden ein. (Bestätigen sie mit Enter");
summand1=scan.nextInt();
System.out.println("Geben Sie nun den zweiten Summanden ein. (Bestätigen sie mit Enter");
summand2=scan.nextInt();
summe=summand1+summand2;
System.out.print("Dieses Programm führt eine Addition zweier Zahlen aus: ");
System.out.println(summand1+"+"+summand2+"="+summe);
}
}