Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- //int temp_mon, temp_tue, temp_wed, temp_thu, temp_fri, temp_sat, temp_sun;
- int temp[7]; // stworzenie tablicy z siedmioma elementami
- for(int i = 0; i < 7; ++i)
- {
- cout << "podaj temperature w dniu nr " << i + 1 << ": ";
- cin >> temp[i];
- }
- cout << "Temperatury w poszczegolnych dniach wynosily: ";
- for(int i = 0; i < 7; ++i)
- {
- cout << temp[i];
- if(i < 6)
- cout << ", ";
- else
- cout << ".\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement