Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main(){
- char str[100000];
- scanf("%s",str);
- int i;
- int meret;
- meret=strlen(str);
- int code;
- code = (int)str[0];
- if( code >= 97 && code <= 122 ){
- int code2;
- code2=code-32;
- str[0]=(char)code2;
- }
- for(i=0;i<meret;i++){
- if( str[i] == '.' || str[i] == '!' || str[i] == '?'){
- toupper(str[i+2]);
- }
- else str[i]=str[i];
- }
- for(i=0; i<meret; i++)
- printf("%c", str[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement