Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

int a = 5; int b = 3; int c = 2; if (a % b == c) system out.println(\to…

Question

int a = 5;
int b = 3;
int c = 2;
if (a % b == c)
system out.println(\totally\);
if (a == 2 * b + c)
system out.println(\awesome\);
what is the output of the program?
no output is generated.
totally awesome
avesome

Explanation:

Brief Explanations

First, assign values: a=5, b=3, c=2. Check the first condition: a > b > c → 5 > 3 > 2 is true, so "totally" is printed. Then check the second condition: a 2 > b c → 52=10, bc=3*2=6 → 10>6 is true, so "awesome" is printed. The outputs are concatenated as "totallyawesome".

Answer:

totally awesome