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
bitwise operations
14th Feb Programming Project v.01
MATRIZ DE CADENAS
Project 3 part 2 Book v1
InterviewDesk_Embedded
B_141128_MatricesSuma
formatting_input_and_output
Hello world!
18BCE2182 ASSESS_1 Q2-1
Instruction order in C/C++