Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- { int mass=100;
- char a[mass];
- int b=0;
- cout << "vvedi stroky" << endl;
- cin.getline (a,mass);
- while (b<mass){
- if (a[b]>='a' && a[b]<='z') {
- a[b]=a[b]-32;
- }
- b++;
- }
- b=0;
- while (b<mass){
- cout << a[b];
- b++;
- if (a[b]==0){
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement