Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. the program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iterate of the inner loop will ask the user for the inches of rainfall for that month, After all iterations, the program should display the number of month the total inches of rainfall, and the average rainfall per month for the entire period.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement