#include <stdio.h> #include <ctype.h> int main() { char c; //Write a program that will accept a series of characters, display the vowels int // small letters and display the consonants in capital letters while((c=getchar())!='\n') { if(c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')||(c=='A')||(c=='E')||(c=='I')||(c=='O')||(c=='U') putchar(tolower(c)); else putchar(toupper(c)); } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter