(a) Difference between for if-else and switch statements along with e…

Previous year question for Computer Programming.

Question

(a) Difference between for if-else and switch statements along with examples. (10)

(b) Write a program to print the following series :

$1 + 11 + 111 + 1111 + .......... + \text{N}$ (10)

Related pages

More PYQs on Decision Making

Open on CachedInfo