Leap year or not
Command Line Program to check if a year is Leap Year or Not
#include<stdio.h> void main(int argc,char *argv[]) { int n; n=atoi(argv[1]); if(n%4==0) { if(n%100==0) { if(n%400==0) printf("Leap Year"); else printf("Not Leap Year"); } else printf("Leap Year"); } else printf("Not Leap Year"); getch(); }
One Subscription, For Everything
The new cool way of learning and upskilling -
One Subscription access everything
Get Access to PrepInsta Prime
from FAANG/IITs/TOP MNC's
PrepInstaPrime
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.
Login/Signup to comment