Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
22nd HW Switchv0.2
//gcc 5.4.0 #include <stdio.h> int main(void) { char myChar; printf("Please enter a single Character:\n"); scanf("%s\n",&myChar); printf("The entered character is:%c\n", myChar); switch(myChar) { case isspace(myChar): printf("You have entered a space character\n"); break; case ispunct(myChar): printf("You have entered a punctuation character\n", break; case iscntrl(myChar): printf("You have entered a control character."); break; case isalnum(myChar): printf("You have entered an alphanumeric character AND"); case isdigit(myChar): printf("Your character is a digit\n"); case isalpha(myChar): case islower(myChar): printf("Your character is an lower case alphabetic character\n"); default: printf("Your character is an Upper case alphabetic character\n"); break; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Practice Problem 7
B_141125_Repetidos
Sunday assignment v2
romitk
Find a Node Sibling Test
SumIt
B_141202_funcionesString
guia 4 terminada
Stub Program for Problem 5 HW 2
swap_bitwise.c
Please log in to post a comment.