Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int i, l=0, lp=0;
- char cos[50];
- gets(cos);
- strlen(cos);
- for(i=0; i<strlen(cos); i++)
- if(cos[i]==' ') l++;
- cout<<"Zdanie sklada sie z "<<l+1<<" wyrazow."<<endl;
- cout<<"ciag sklada sie z "<<strlen(cos)-l<<" znaków."<<endl;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement