Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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.
Official Hello world
poist
swipe the numbers in cyclic way
kill
B_141128_MatrizProducto
tgo
FUNCION strstr()
Matrices de cadenas con *punteros
SEGUNDO AVANCE DE NETFLIX
variable arguments 2
Please log in to post a comment.