Polnochniy

Untitled

Nov 6th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. setlocale(LC_ALL, "Russian");
  7. double N, a, max, P;
  8. cout << "Введите числа" << endl;
  9. cin >> a;
  10. max = a;
  11. while (a != 0)
  12. {
  13. cin >> a;
  14. if (a > max)
  15. {
  16. max = a;
  17. }
  18.  
  19. }
  20. cout << "Максимальное число равно= " << max << endl;
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment