Determine whether it is a leap year?

#include "stdio.h"
void main ()
{
int n-;
the printf ( "Enter a year:");
Scanf ( "% D", & n-);
! IF ((n-n-%. 4 == 0 && 0 = 100% ) || (400% n-== 0))
the printf ( "leap year");
the else
the printf ( "not a leap year");
}

Guess you like

Origin www.cnblogs.com/bobotongxue/p/12290663.html