import java.util.Scanner; public class Anfang { public static void Aufgabe1() { String test = "Hello_World!"; for(int i = 11; i >(-1); i--) { System.out.println( test.charAt(i) ); } } public static void Aufgabe2() { Scanner Sc = new Scanner (System.in); int eingabe = Sc.nextInt(); System.out.println(eingabe + "Sekunden entsprechen"); System.out.println(eingabe/60/60/24/365 + "Jahren"); System.out.println(eingabe/60/60/24 + "Tagen"); System.out.println(eingabe/60/60 + "Stunden"); System.out.println(eingabe/60 + "Minuten"); System.out.println(eingabe + "Sekunden"); } public static void Aufgabe3() { for(int i = 1; i < 11; i++) { System.out.print(i); } for(int i= 1; i < 11; i++) { System.out.print(i*2); } for(int i= 1; i < 11; i++) { System.out.print(i*3); } for(int i= 1; i < 11; i++) { System.out.print(i*4); } for(int i= 1; i < 11; i++) { System.out.print(i*5); } for(int i= 1; i < 11; i++) { System.out.print(i*6); } for(int i= 1; i < 11; i++) { System.out.print(i*7); } for(int i= 1; i < 11; i++) { System.out.print(i*8); } for(int i= 1; i < 11; i++) { System.out.print(i*9); } for(int i= 1; i < 11; i++) { System.out.print(i*10); } } }