#include <iostream.h> #include <conio.h> int main() { int year; cout << "Enter Year: "; cin >> year; (year%4)==0 ? cout<<"Leap Year" : cout<<"NOT Leap Year"; getch(); return 0; }
#include <iostream.h> #include <conio.h> int main() { int year; cout << "Enter Year: "; cin >> year; (year%4)==0 ? cout<<"Leap Year" : cout<<"NOT Leap Year"; getch(); return 0; }