Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a
Language: C/C++
Code:
#include <stdio.h>
int main()
{
float avg,sum=0;
int i;
int marks[4];
for(i=0;i<=3;i++)
  {
   printf("enter marks");
       scanf("%d",&marks[i]);
}
for(i=0;i<=3;i++)
 {
sum=sum+marks[i];

avg=sum/30;
printf("\naverage marks=%f",&avg);
}
}
Comments: