Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void kolos1()
- {
- char ciag[] = " aaaaaaabbbbb cccccccccc dddddddd eeee f\0";
- for (int i = 0; ciag[i] != '\0'; i++)
- {
- printf("%c", ciag[i]);
- }
- if ((ciag[0] >= 97 && ciag[0] <= 122))
- {
- ciag[0] = ciag[0] - 32;
- }
- printf("%c", ciag[0]);
- for (int i = 1; ciag[i] != '\0'; i++)
- {
- if ((ciag[i] >= 97 && ciag[i] <= 122) && (ciag[i - 1]!=ciag[i] && ciag[i - 1] != ciag[i]-32))
- {
- ciag[i] = ciag[i] - 32;
- }
- printf("%c", ciag[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement