Write programs to print the following outputs using for loops.
2. Write a program to read the age of 100 persons and count the number of persons in the age
group 50 to 60. Use for and continue statements. 3. Rewrite the program of case study 8.4 (plotting of two curves) using else…if constructs
instead of continue statements. 4. Write a program to print a table of values of the function y = exp (-x) for x varying from 0.0 to 10.0 in steps of 0.10. The table should appear as follows: