Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int cities_number, temperature;
- cin >> cities_number;
- int counter = 0;
- int min_temp = 41;
- while (counter < cities_number) {
- cin >> temperature;
- if (temperature < min_temp) {
- min_temp = temperature;
- }
- counter++;
- }
- cout << min_temp << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement