# include<stdio.h> int main() { /* variable definition: */ float rain, sum; /* Initialize */ sum = 0; // Loop through to input values for (int count=0; count < 12; count++) for (int year =0; year <5; year++) { if (rain >=0.0 ) if (year <5){ sum +=rain; } else { } } return sum; }
1.2 2.2 3.3 2.2 10.2 12.2 2.3 0.4 0.2 1.1 2.1 0.4
Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is Enter rainfall for this year sum of rainfall is