Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string line;
- cout << "Enter a line of text\n";
- getline(cin, line);
- for (int sub = 0; sub < line.length(); sub++)
- {
- line[sub] = toupper(line[sub]);
- cout << line[sub];
- }
- cout << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment