Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
C_14119_Media
//Title of this code #include <stdio.h> int main(void) { long suma; short n; short nota; suma = n = 0; do { printf("\nNota ---> "); scanf(" %hd", ¬a); if(nota < 0) { break; } if(nota <= 10) { suma += nota; n++; } }while(1); if(n != 0) { printf("La media es %.2lf\n\n", (double)suma / n); } else { printf("Campeón! No has metido notassshh...\n\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
B_141107_TablaMultiplicar
PRIMER AVANCE DE NETFLIX
Project 3 part 2 Book v0.5
MATRICES TRIANGULARES
MatrixMul_shortxshort
Maze
Project 3 Part 1 v1.2
sum of arrays
extra causes class UK assisment
get the repeated max
Please log in to post a comment.