Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zad4(char *napis)
- {
- int dl = strlen(napis);
- for(int i=0; i<dl; i++)
- {
- if (napis[i]>=97)
- napis[i]=napis[i]-32;
- }
- }
- int main()
- {
- int i, l=0, lp=0;
- char cos[255];
- gets(cos);
- strlen(cos);
- for(i=0; i<strlen(cos); i++)
- if(cos[i]==' ')
- l++;
- cout<<"Zdanie ma: "<<l+1<<" wyrazow."<<endl;
- cout<<"Ciag ma: "<<strlen(cos)-l<<" znakow."<<endl;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement