Predict the output:
if ( a > b )
System.out.println(a+b);
System.out.println (a*b);
when a = 5 and b = 7
Answers
Answered by
13
Answer:
35
mark me brainlist...
Answered by
1
The output will be 35 and 12.
Given, a=5, b= 7
if ( a > b )
- This instruction means suppose a is greater than b.
System.out.println(a+b);
- This instruction means the output will be the addition of two numbers.
System.out.println (a*b);
- This instruction means the output will be the multiplication of two numbers.
- The function used here is Blue Java Command,
- It helps in solving problems like addition, subtraction, etc
- After writing the necessary commands there is a compile option, put the result of the values will be out.
Similar questions