output {for (i=1; i ==n ; i++) print i} ?
Answers
Answered by
0
Answer:
It depends on n
Explanation:
Simply put, if n is equal to 1 then it's gonna print 1 on the terminal. If n is not equal to 1 and is some other number then the loop will not be executed. The reason is that the condition evaluates to true only if the value of n is equal to i. However the loop will work only once if it n is indeed 1 as by the time the value of i is updated to 2( and assuming n remains the same) the condition will no longer evaluate to true and the loop will be terminated.
Hope it helps u to understand :)
Similar questions