repo.or.cz
/
letusc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move to repo.or.cz
[letusc.git]
/
ch1
/
exercises
/
ex3.c
blob
012d4967b668e7fa6cc876a7bd5e33b202a292d2
1
/*marks problem*/
2
3
#include<stdio.h>
4
5
int
main
()
6
{
7
float
s1
,
s2
,
s3
,
s4
,
s5
;
8
float
avg
;
9
10
printf
(
"Enter the marks: "
);
11
scanf
(
"%f %f %f %f %f"
,&
s1
,&
s2
,&
s3
,&
s4
,&
s5
);
12
13
avg
= (
s1
+
s2
+
s3
+
s4
+
s5
)/
5
;
14
15
printf
(
"The average is %.2f
\n
"
,
avg
);
16
17
return
0
;
18
}