Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int liczba, m=0, l;
- cout << "Podaj ile liczb chcesz podac: ";
- cin >> l;
- for(int i=0; i<l; i++)
- {
- cin>>liczba;
- if(liczba>m) m=liczba;
- }
- cout << "Najwieksza liczba to: " << m;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement