Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctype.h>
  3. using namespace std;
  4. int main()
  5. {
  6. char sir[256],*p;
  7. cout<<"Sirul de caractere: ";cin.get(sir,100);
  8. for (p=sir;*p;p++)
  9. if(*p>='A'&& *p<='2') *p+=32;
  10. cout<<sir<<endl;
  11. for (p=sir;*p;p++)
  12. *p=toupper(*p);
  13. cout<<sir;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement