Guest User

Untitled

a guest
Dec 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2. public class main_baschtlen {
  3.  
  4.  
  5. public static void main(String[] args) {
  6. int a;
  7. System.out.println("Ab welchem Alter fängt das Leben an?");
  8. a = Terminal.readInt();
  9.  
  10. while (a==22){
  11. System.out.println("RICHTIG!!!!!!!!!!!!!");
  12. a = Terminal.readInt();
  13. }
  14. while (a>22 && a<=30){
  15. System.out.println("Naja, fast... Versuchs nochmal!");
  16. a = Terminal.readInt();
  17. }
  18. while (a>30){
  19. System.out.println("Lol, du hast wohl keine Ahnung vom Leben... :)");
  20. a = Terminal.readInt();
  21. }
  22. while (a<22){
  23. System.out.println("ZU JUNG!!!! FAIL!!!");
  24. a = Terminal.readInt();
  25. }
  26.  
  27. }
  28.  
  29. }
Add Comment
Please, Sign In to add comment