char s[200]; scanf_s("%s",s,200); //printf_s("%s\n",s); int i=0; int num=0; while(s[i]!='\0') { ++num; if(s[i]>='a' && s[i]<='z') s[i]=s[i]+'A'-'a'; ++i; } printf_s("%s\n",s); printf_s("%d\n",num);