Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(true){
- System.out.println(" Enter two numbers that add to a number greater than 10 and less than 20");
- Scanner sc = new Scanner(System.in);
- int alpha = sc.nextInt();
- int omega = sc.nextInt();
- if (alpha + omega > 10 && alpha + omega < 20)
- System.out.print("booyah, you got this,");
- else
- System.out.print("try harder loser,");
- }
Add Comment
Please, Sign In to add comment