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
joseph triangle
project menu
18BCE2182 ASSESS_3 Q2
Pattern 13
MATRICES TRIANGULARES
Coba
assignment 3 celina
18BCE2182 ASSESS_1 Q2-2
A_141205_Palindromo
Anutter juan