Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int max_temp_day;
- int day = 1;
- int max_temp = INT_MIN;
- while (day <= 7) {
- int temp;
- cin >> temp;
- if (temp > max_temp) {
- max_temp = temp;
- max_temp_day = day;
- }
- day++;
- }
- cout << max_temp_day << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement