Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- int main()
- {
- char ch[10000];
- printf("Assalamu Alaikum, Type your feelings bellow:\n");
- gets(ch);
- int i = 1;
- ch[0] = toupper(ch[0]);
- while (ch[i] != '\0') {
- if (ch[i] == ' ') {
- ch[i + 1] = toupper(ch[i + 1]);
- i++;
- }
- i++;
- }
- printf("%s\n", ch);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement