Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int broj, max_el = 0;
- do {
- cout << "Unesite pozitivan broj: " << endl;
- cin >> broj;
- if (broj > max_el)
- max_el = broj;
- }
- while (broj!=0);
- cout << "Najveci bro je:" << max_el << endl ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement