Guest User

Untitled

a guest
Jan 28th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <cmath>
  4. #include <string>
  5. #include <iomanip>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11. double x;
  12. char uscita = 'q';
  13. double minimo;
  14.  
  15. cout << "Digita una serie di numeri seguiti da invio, premere \"q\" per uscire" << endl;
  16. do
  17. {
  18. cin.clear();
  19. cin>> x;
  20. if (minimo < x)
  21. minimo = x;
  22. }
  23. while(x != 'q');
  24. cout << x << endl;
  25.  
  26. system("PAUSE");
  27. return EXIT_SUCCESS;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment