How to write a C Program to Average temperature in quarters in C Programming Language ?
This C Program to Average temperature in quarters.
]Solution:
- printf("\n\n\nAverage temperature in quarters :\n\n ");
- printf(" JAN-MAR APR-JUN JUL-SEP OCT-DEC\n");
- for(rok=0; rok<=15; rok++)
- {
- printf("%d ",(1995+rok));
- for(mesic=0; mesic<=3; mesic++)
- {
- printf(" %4.1f %",mean_row(temp, rok+1, 1+mesic*3, 3+mesic*3));
- }
- printf("\n");
- }