D2 Contest -1 problem 3
unknown
c_cpp
19 days ago
495 B
2
Indexable
Never
#include <stdio.h> #include <ctype.h> int main() { char c; scanf("%c", &c); char lower_c = tolower(c); if (lower_c == 'a' ) { printf("Yes .\n"); } else if (lower_c == 'e'){ printf("Yes .\n"); } else if (lower_c == 'i'){ printf("Yes .\n"); } else if (lower_c == 'o'){ printf("Yes .\n"); } else if (lower_c == 'u'){ printf("Yes .\n"); } else { printf("No .\n"); } return 0; }
Leave a Comment