Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141104_NotaSwitch
//Title of this code #include <stdio.h> #include <math.h> int main(void) { double nota; printf("Nota obtenida: "); scanf(" %lf", ¬a); switch((short)floor(nota)) { case 0 : case 1 : case 2 : case 3 : case 4 : printf("SUSPENSO\n"); break; case 5 : case 6 : printf("APROBADO\n"); break; case 7 : case 8 : printf("NOTABLE\n"); break; case 9 : case 10 : printf("SOBRESALIENTE\n"); break; default : printf("NOTA ERRONEA\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Assignment 3
Area
recursive
prime numbers min>max
Max of arrays
Estrutura
Matrix multiplication. C
GCC supports 128-bit integer arithmetic
BSEARCH() COMPLETE
NOT a String in C - 2
Please log in to post a comment.