Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- int n, max = -2147483648, i=1;
- do
- {
- cout<<"a["<<i<<"] -> ";
- cin>>n;
- if (n > max)
- max = n;
- i++;
- } while (n != 0);
- cout<<"MAX = "<<max<<"\n";
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment