Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void input (char w[])
- {
- cout << "Type the words:";
- cin.getline(w, 100);
- }
- int magnifier(char w)
- {
- if (w>='a'&& w<='z')
- {
- w=w-32;
- }
- return w;
- }
- void letter_magnifications (char w[])
- {
- int careht_1=0;
- while (w[careht_1] > 0)
- {
- w[careht_1] = magnifier(w[careht_1]);
- careht_1++;
- }
- }
- int main()
- {
- int careht_1=0;
- char w[100];
- input (w);
- letter_magnifications ( w );
- cout << w;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement