Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int chacker()
- {
- bool changed = true;
- int thebiggest = 0;
- int buffer = NULL;
- while (changed)
- {
- cin >> buffer;
- if (buffer == 0)
- changed = false;
- else if (buffer > thebiggest)
- thebiggest = buffer;
- }
- return thebiggest;
- }
- int main()
- {
- cout << chacker();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement