Advertisement
Ro_ro400_

Untitled

Jan 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void input (char w[])
  5. {
  6. cout << "Type the words:";
  7. cin.getline(w, 100);
  8. }
  9. int magnifier(char w)
  10. {
  11. if (w>='a'&& w<='z')
  12. {
  13. w=w-32;
  14. }
  15. return w;
  16. }
  17. void letter_magnifications (char w[])
  18. {
  19. int careht_1=0;
  20. while (w[careht_1] > 0)
  21. {
  22. w[careht_1] = magnifier(w[careht_1]);
  23. careht_1++;
  24. }
  25. }
  26. int main()
  27. {
  28. int careht_1=0;
  29. char w[100];
  30. input (w);
  31. letter_magnifications ( w );
  32. cout << w;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement