Computer Science, asked by Anonymous, 1 year ago

predict the output............

Attachments:

CoolestCat015: which language is it ?

Answers

Answered by Anonymous
0

Hi,

(I am assuming that you already know that if block executes only if given condition return true)

Nothing gonna happen because we are checking if value of "n" is greater than 1 or 0... both cases will return false.

Answered by Brenquoler
37

If n = 1

Then the condition will be true and hence,

1=1+1

1=1+1

So,

2, 2

and If, n = 0

The condition will be false

Similar questions