Which of the following series will be printed by the given pseudocode?
1) Integer i, j, k, n
2) Set j=1, k=1
3) For (each i from 1 to 5)
4) print k
5) j=j+1
6) k=k+j
7) End-for
a) 1 3 6 10 15
b) 1 2 3 4 5
c) 4 6 8 10
d) 1 1 2 3 5
Answers
Answered by
9
Answer:
a
Explanation:
a,1 3 6 10 15
HINT : for(i=1;i=5;i++)
Similar questions