Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int funkc(char *arr)
- {
- int a = 0;
- if (arr[0] != 9 || arr[0] != 10 || arr[0] != 32)
- {
- a = a + 1;
- }
- for (int i = 0;arr[i]!='\0'; i++)
- {
- if ((arr[i] == 9 || arr[i] == 10 || arr[i] == 32)
- &&
- (arr[i+1] != 9 && arr[i+1] != 10 && arr[i+1] != 32 && arr[i+1]!=0))
- {
- a = a + 1;
- }
- if (arr[i] >= 'a' && arr[i] <= 'z')
- {
- arr[i] = arr[i] - 32;
- }
- printf("%c", arr[i]);
- }
- return a;
- }
- void kolos1()
- {
- char arr[]="ala ma kota ufo przylecialooo z marsa \0";
- printf("%d", funkc(arr));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement