Guest User

Untitled

a guest
Jan 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. while(true){
  2. System.out.println(" Enter two numbers that add to a number greater than 10 and less than 20");
  3. Scanner sc = new Scanner(System.in);
  4. int alpha = sc.nextInt();
  5. int omega = sc.nextInt();
  6. if (alpha + omega > 10 && alpha + omega < 20)
  7. System.out.print("booyah, you got this,");
  8. else
  9. System.out.print("try harder loser,");
  10. }
Add Comment
Please, Sign In to add comment