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: 551 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!