
CodePudding user response:
This is very simple, input use cin, condition judgment with the if
CodePudding user response:
The building Lord, where are you this?
CodePudding user response:
#include
using namespace std;
Int main () {
Int year;
Cin & gt;> Year;
If (year & lt; 1900 | | year> 2200)
Cout & lt; <"Error" & lt; Else if (year %==0 400)
Cout & lt; <"Yes" & lt; Else if (year %==0 100)
Cout & lt; <"No" & lt; Else if (year % 4==0)
Cout & lt; <"Yes" & lt; The else
Cout & lt; <"No" & lt;
return 0;
} CodePudding user response: