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

Previous year question for Computer Programming.

Question

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

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

$1 + 11 + 111 + 1111 + ............ + N$ (10)

Related pages

More PYQs on Looping

Open on CachedInfo