Open In App

Capgemini | Pseudocode Questions | Question 13

Predict the output of the following pseudo-code 

Integer a, b, c, d 
Set b = 10, c = 11 
a = b – c 
for (each c from 2 to a) 
  b = b + c + 10 
  b = b/2 
end for 
c = a + b + c 
Print a b c

(A)



-1 7 9 
 

(B)



2 5 8 

(C)

-1 9 19 

(D)

5 10 13

Answer: (C)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized