Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- char stroka[100];
- int i=0;
- cin.getline(stroka,100);
- while (stroka[i]!=0)
- {
- {if ((stroka[i]>96)&&(stroka[i]<123))
- {
- stroka[i]-=32;
- }
- else
- {
- if ((stroka[i]>64)&&(stroka[i]<91))
- stroka[i]+=32;
- }}
- i++;
- }
- i=0;
- while (stroka[i]!=0)
- {
- cout<<stroka[i];
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement