Advertisement
dowlaxd

Untitled

Oct 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int broj, max_el = 0;
  8. do  {
  9.     cout << "Unesite pozitivan broj: " << endl;
  10.     cin >> broj;
  11.     if (broj > max_el)
  12.         max_el = broj;
  13.         }
  14. while (broj!=0);
  15.  
  16.  
  17. cout << "Najveci bro je:" << max_el << endl ;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement