#include <stdio.h> #include<string.h> #include<ctype.h> int main() { char arr[5000000]={0}; fgets(arr,499999,stdin); char*new; new=strtok(arr," "); printf("%c",toupper(*new)); while(new=strtok(NULL," ")) { printf("%c",toupper(*new)); } return 0; }
#include <stdio.h> #include<string.h> #include<ctype.h> int main() { char arr[5000000]={0}; fgets(arr,499999,stdin); char*new; new=strtok(arr," "); printf("%c",toupper(*new)); while(new=strtok(NULL," ")) { printf("%c",toupper(*new)); } return 0; }