Перенос страниц

This commit is contained in:
Alexander Zhirov 2023-03-05 15:30:34 +03:00
parent 4d57446057
commit 4c954c9186
129 changed files with 14 additions and 15 deletions

View file

@ -0,0 +1,16 @@
import std.stdio;
pure bool leapYear(uint y)
{
return (y % 4) == 0 && (y % 100 || (y % 400) == 0);
}
pure uint daysInYear(uint y)
{
return 365 + leapYear(y);
}
void main()
{
writeln(daysInYear(2022));
}