move to repo.or.cz
[letusc.git] / ch1 / exercises / ex3.c
blob012d4967b668e7fa6cc876a7bd5e33b202a292d2
1 /*marks problem*/
3 #include<stdio.h>
5 int main()
7 float s1,s2,s3,s4,s5;
8 float avg;
10 printf("Enter the marks: ");
11 scanf("%f %f %f %f %f",&s1,&s2,&s3,&s4,&s5);
13 avg = (s1+s2+s3+s4+s5)/5;
15 printf("The average is %.2f\n",avg);
17 return 0;