int a = 35;\nint b = 13;\nint c = 11;\nif (a % b > c)\n system.out.println(\totally\);\nif (a + -2 * b <…

int a = 35;\nint b = 13;\nint c = 11;\nif (a % b > c)\n system.out.println(\totally\);\nif (a + -2 * b < c)\n system.out.println(\awesome\);\nwhat is the output of the program?\ntotally awesometotallyawesome
Answer
Explanation:
Step1: Calculate a % b
$35\bmod{13}=9$
Step2: Check first if - condition
Since $9<11$, the first if - condition (a % b > c) is false, so "totally" will not be printed.
Step3: Calculate a + - 2 * b
$35+(-2)\times13=35 - 26 = 9$
Step4: Check second if - condition
Since $9<11$, the second if - condition (a + - 2 * b < c) is true, so "awesome" will be printed.
Answer:
awesome