Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tablica[20]{ 11, 0, 12, 5, 6, 8, 13, 4, 11, 8, 13, 2, 6, 14, 1, 3, 3, 1, 13, 14 };
- int max, cMax, min, cMin;
- // miejsce na Twój kod
- cout << "Najwieksza wartosc z tablicy to " << max << ", wystepuje ona " << cMax << " razy.\n";
- cout << "Najmniejsza wartosc w tablicy to " << min << ", wystepuje ona " << cMin << " razy.\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement