'commit'
This commit is contained in:
14
C++专题课程/基础知识/闰年判断.cpp
Normal file
14
C++专题课程/基础知识/闰年判断.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int y;
|
||||
scanf("%d",&y);
|
||||
if(y%4==0&&y%100!=0||y%400==0) {
|
||||
printf("yes");
|
||||
} else {
|
||||
printf("no");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user