#include <iostream> using std::cout; using std::cin; using std::endl; int main () { int god; printf("введите Год "); scanf("%d",&god); if (god%100 != 0 && god%400 == 0){ printf("невисокосный год\n"); }else if (god%4 == 0) printf("високосный Год\n"); else printf("невисокосный Г,од\n"); return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter