Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class main_baschtlen {
- public static void main(String[] args) {
- int a;
- System.out.println("Ab welchem Alter fängt das Leben an?");
- a = Terminal.readInt();
- while (a==22){
- System.out.println("RICHTIG!!!!!!!!!!!!!");
- a = Terminal.readInt();
- }
- while (a>22 && a<=30){
- System.out.println("Naja, fast... Versuchs nochmal!");
- a = Terminal.readInt();
- }
- while (a>30){
- System.out.println("Lol, du hast wohl keine Ahnung vom Leben... :)");
- a = Terminal.readInt();
- }
- while (a<22){
- System.out.println("ZU JUNG!!!! FAIL!!!");
- a = Terminal.readInt();
- }
- }
- }
Add Comment
Please, Sign In to add comment