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