nm
This commit is contained in:
parent
3f743a0312
commit
92cd2cd6e7
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -35,13 +35,15 @@ int datevalid(int d, int m, int y) {
|
||||
|
||||
if (m == 2) {
|
||||
if (isleap(y)) {
|
||||
if(d <= 29) {
|
||||
return 1;
|
||||
if (d > 29) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (d > 28) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( m == 4 || m == 6 || m == 9 || m == 11 ) {
|
||||
if(d <= 30) {
|
||||
|
Loading…
Reference in New Issue
Block a user