Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#Define / Case/ If practice
#include <stdio.h> #define one '1' #define two '2' void main() { char myChar; printf("Enter a value between 1 to 2:"); scanf("%c", &myChar); switch (myChar) { case one: printf("%c\n",one); break; case two: printf("%c\n",two); break; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
LinkedListTest
B_141121_factorial01
Leap year check
ajr
C_141113_dividirRestasSucesivas
Dangling
Lior Yehieli Lesson
18BCE2182 ASSESS_3 Q4
strcmp
strend
Please log in to post a comment.