Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- int main() {
- vector<int> month_lengths = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
- // считайте номер месяца и выведите количество дней в нём
- int month;
- cin >> month;
- cout << month_lengths[month] << endl;
- }
Add Comment
Please, Sign In to add comment