Skip to content

Commit 3b37750

Browse files
Create bai17.cpp
1 parent 26f9a66 commit 3b37750

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

b01/bai17.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
int year;
6+
cin >> year;
7+
if ( (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0) ) cout << "Day la nam nhuan.";
8+
else cout << "Day khong phai la nam nhuan.";
9+
return 0;
10+
}

0 commit comments

Comments
 (0)