Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Welcome1
#include <stdio.h> void main() { int m1,m2,m3,m4,m5,m6; float sum,avg; printf ("Enter 6 sub marks:"); scanf ("%d%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5,&m6); sum=m1+m2+m3+m4+m5+m6; avg=sum/6; printf ("sum is:%f\n",sum); printf ("Avg is:%f\n",avg); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Find a Node Sibling Test
scanf and integer manipulation
incrementing values in an array
fork() System call
addition
function pointers
pointer**
B_141202_CADENA_NUMERO
A_141117_Primo02
C141105_SwitchNotas
Please log in to post a comment.