Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char str [256];
- int i;
- for(i=0;i<256;i++)
- {
- str[i]=' ';
- }
- cout << "Wwedi stroku : ";
- cin.getline (str,256);
- for(i=0;i<256;i++)
- {
- if(str[i]==' '&&str[i]=='\0')
- {
- cout << str;
- }
- else
- if(str[i]>='a'&&str[i]<='z')
- {
- str[i]=str[i]-32;
- }
- cout << str[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement