11 фев 2020
conf
:
![](https://world79.spcs.bio/i/acl/all_grey.png)
![(OFF)](https://world79.spcs.bio/i/head/man_off.png?3)
![(S)](https://world79.spcs.bio/i/colored/medal_silver.png)
поиск високосного года
#include <stdio.h>
#define START 1900
#define END 2050
int main () {
for (int year = START; year <= END; year++) {
if (((year % 4 == 0) && ((year % 100 != 0))) || (year % 400) == 0) {
printf ("%s %5i\n", "Високосный год:", year);
}
}
return 0;
}
![]() | ![]() | ![]() | ![]() |
Для добавления комментариев необходимо авторизоваться