#include <stdio.h> int main () { char name[21]; printf("Please enter your name:\n"); scanf("%20[^\n]",name); for(int i =0;name[i];i++) { if(name[i] >= 'a'&& name[i] <='z') { name[i] -= 32; } } printf("%s",name); 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