Run ID:63053
提交时间:2024-01-03 21:31:56
#include<iostream> using namespace std; int main() { int year; cout << "请输入一个年份,以判断是不是闰年:"; cin >> year; if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) cout << "leap year" << endl; else cout << "not leap year" << endl; return 0; }