dicission making example in c++
/* Scenario As you surely know, due to some astronomical reason, a year may be leap or common. The former is 366 days long while the latter is365 days. Since the introduction of the Gregorian calendar (in 1582), the following rule is used to determine the kind of year: • if the year number isn't divisible by 4, it is a common year; • otherwise, if the year number isn't divisible by 100, it is a leap year; • otherwise, if the year number isn't divisible by 400, it is a common year; • otherwise, it is a leap year. */ #include <iostream> using namespace std; int main() { int year; cout << "enter year "; cin >> year; if (year > 1582) { if (year % 4 != 0) cout << "it is common year"; else if (year % 100 != 0) {...