Computer Science, asked by dakshgirdhar11, 5 months ago

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 izabelJ
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