Run Code
|
API
|
Code Wall
|
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
problem4 review fundamentos
B_141107_TablaMultiplicar
Fibonacci multiplos de 3 y menores que 30
Lab 11v0.6
Instruction order in C/C++
20171127_ARRAY_PRIMOS
Alphabet Triangle
example of scanf and basic integer manipulation
14th Feb Project v0.3
prime or not