Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int year{2021};
- int days{365};
- std::cout << "Enter year number\n";
- std::cin >> year;
- days += (year % 400 == 0) or ((year % 100 != 0) and (year % 4 == 0));
- std::cout << "In year " << year << " there are " << days << " days\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement