Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- double N, a, max, P;
- cout << "Введите числа" << endl;
- cin >> a;
- max = a;
- while (a != 0)
- {
- cin >> a;
- if (a > max)
- {
- max = a;
- }
- }
- cout << "Максимальное число равно= " << max << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment