Create a C Program called Summer_Heat that
meets the following criteria:
Source code:
// Program name: Summer_Heat
// Programmer name
#include <stdio.h>
#include <stdlib.h>
//Declarations
int counter=0;
double
temperature[10]={78.6,82.1,79.5,75.0,75.4,71.8,73.3,69.5,74.1,75.7};
//Main Program
int main( )
{
printf("The Daily Temperatures for the last 10 Days
Were:\n");
while(counter<10)
{
printf("%.1f\n",temperature[counter]);
counter++;
}
system("pause");
return 0;
}
code screenshot:
output:
Get Answers For Free
Most questions answered within 1 hours.