Skip to main content

PRACTICE QUESTIONS SET 5 (LOOPING)


LIST OF PROGRAMS


51.       WAP to print all the prime nos. between 1 lo 100.
52.       WAP to print all the prefect nos. between 1 to 100.
53.       WAP to print all the special Nos. between 10 to 500000
54.       WAP to print all the special No between 1 to n
55.       WAP to print all the Armstrong Nos. between 1 to 500
56.       Print the sum of magic nos. between I to n
57.       Print the sum of Armstrong nos. between 1 to 200000.
58.       Print the Pythagorean triplets between 1 to 100.
(sum of square of two successive nos. is equal to the third one) 33+ 44=52
59.       WAP to input a no and print its prime factorizations.
60.       Print all the Prime palindrome nos. between I to 500.
61.       WAP to print the following series.
1,2,3,4…………………………………up-to 10.
62.       11,12,13,14…………………………………up-to 50.
63.       I, 3, 5. 7…………………………………up-to 20.
64.       1,3, 5,7…………………………………up-to 20 terms.
65.       2,4,6,8…………………………………up-to 15.
66.       2,4, 6, 8…………………………………up-to 20 terms.
67.       11,13,15…………………………………up-to 50 terms.
68.       42, 44,46…………………………………up-to 100 terms.
69.       10,9,8,7…………………………………up-to 1.
70.       100. 99, 98…………………………………up-to 50.
71.       1,4,9,16…………………………………up-to 20 terms.
72.       1,8,27,64…………………………………up-to 20 terms.
73.       0,3,8,15…………………………………up-to 25 terms.
74.       2,5,10,17…………………………………up-to 25 terms.
75.       1,2,4,8,16…………………………………up-to 30 terms.
76.       1,5,25,1257…………………………………up-to 20 terms.
77.       3,6,9,12…………………………………up-to 20 terms.
78.       4,8,12,16…………………………………up-to 20 terms.
79.       12,24,36…………………………………up-to 40 terms.
80.       100,5000,2500…………………………………up-to 250.
81.       2,4,8,16…………………………………up-to 20 terms.
82.       100,97,94,91…………………………………up-to 10 terms.
83.       Find the sum of following 1+2+3+4…………………………………up-to 20 terms.
84.       11+12 +13 + 14…………………………………up-to 50 terms.
85.       1+3+5+7…………………………………up-to 50 terms.
86.       2+4+6+8……………………………………up-to 99 terms.
87.       1+7+13+19……………………………………..up-to 25 terms.
88.       1+4+9+16……………………………………..up-to 25 terms.
89.       1+8+27+64……………………………………..up-to 25 terms.
90.       0+3+8+15……………………………………..up-to 20 terms.
91.       2+5+10+17……………………………………..up-to 25 terms.
92.        *+*+*+*+ 92+93+95+96+97+98+99  
93.        92+93+95+96+97+98+99+ *+*+*+*+
94.       1!+2!+3!+4! ……………………….n!
95.       1+3+6+10+....................UPTO 40 TERMS
96.       1+(-2)+3+(-4).................UPTO 40 TEMS

Comments

Popular posts from this blog

unix commands