<=Back
The following is an extract of a C program written by student during a programming lesson.
#include<stdio.h>
void main()
{
integer:i,j;
float: mean;
printf(“input two values \n”);
fscanf(“%d”,&i,&j);
mean=(i+j)/2;
printf(“The mean is %d \n”,mean);
}
Rewrite the program by removing the errors in a c program
 Viewed: 457 times
Share in: