'commit'
This commit is contained in:
11
C++课程/第十课逻辑表达式和条件表达式/p70.cpp
Normal file
11
C++课程/第十课逻辑表达式和条件表达式/p70.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int year;
|
||||
cin>>year;
|
||||
if((year%4==0 && year%100!=0)||year%400==0)
|
||||
cout<<year<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
else cout<<year<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user