SIGN UP FOR FREE !
Home
/ Forum
User Forum
Ask Your Question
VIDHANT GARG PUNEET GARG
from
DPS GREATER FARIDABAD, FARIDABAD
Subject :
ICSO
Class :
Class 9
What would be the value of SUM, if user enters N = 8 in the given flowchart?
A
28
B
36
C
8
D
12
View All Answers (3)
Ans 1:
×
Edit Post
Post
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
Harsh Shukla
from
DPS Bangalore East, Bengaluru
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:
×
Edit Post
Post
8
Chinmay Shinde
from
Podar International School, Osmanabad
Class :
Class 4
8
Ans 3:
×
Edit Post
Post
8
MANAS GUPTA
from
Sri Sri academy, kolkata
Class :
Class 9
8
Submit Your Answers
Post Your Answer