Run Code
|
API
|
Code Wall
|
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
Lab 7 blackjack v1.1
cstructCensus
Programação em C, testes
z is 7
array poi
tst2.c
Multiple If statements v.09
PPCG partial solution to https://codegolf.stackexchange.com/q/120870/61563
Assignment 3
Address.c