b) Write is the output of following code:
a = 10
if a>100:
print("Welcome")
else:
print("KIPS")
if you write anything u will be reported
Answers
Answered by
6
The snippet u've written is wrong.
int a=10;
if(a>100)
System.out.println("Welcome");
else
System.out.println("KIPS");
Output:
KIPS
Explanation:
As a is not greater than 100 it won't excute the first statement.
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Math,
5 months ago
Psychology,
11 months ago
History,
11 months ago
English,
11 months ago