C Program Average Temperature in Quarters

How to write a C Program Average Temperature in Quarters in C Programming Language ?


This C Program Finds Average temperature in quarters.

Solution:

  1.  printf("\n\n\nAverage temperature in quarters :\n\n ");
  2.     printf("     JAN-MAR   APR-JUN   JUL-SEP   OCT-DEC\n");
  3.     for(rok=0; rok<=15; rok++)
  4.     {
  5.         printf("%d ",(1995+rok));
  6.         for(mesic=0; mesic<=3; mesic++)
  7.         {
  8.             printf(" %4.1f     %",mean_row(temp, rok+1, 1+mesic*3, 3+mesic*3));
  9.  
  10.         }
  11.         printf("\n");
  12.     }


Learn More :