User Forum

Subject :ICSO    Class : Class 9

What would be the value of SUM, if user enters N = 8 in the given flowchart?


A28
B36
C8
D12


Ans 1:

Class : Class 9
It will be 36 as value as i will be greater than n once i = 9 which means the while loop "is i > n" will run 8 times. As SUM = SUM + i, SUM will be 1+2+3+4+5+6+7+8 = 36

Ans 2:

Class : Class 4
8

Ans 3:

Class : Class 9
8

Post Your Answer