Advertisement
EgorPodvalkov

строки в

Mar 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. { int mass=100;
  7. char a[mass];
  8. int b=0;
  9. cout << "vvedi stroky" << endl;
  10. cin.getline (a,mass);
  11. while (b<mass){
  12. if (a[b]>='a' && a[b]<='z') {
  13. a[b]=a[b]-32;
  14. }
  15. b++;
  16. }
  17. b=0;
  18. while (b<mass){
  19. cout << a[b];
  20. b++;
  21. if (a[b]==0){
  22. break;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement