We Post only the Best Stuff

C Program to check whether Year is Leap or not

Previous Program »» C Program to find out whether number is even or odd

This Program also works on the principle of even/odd number program and its coding goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n;
printf("Enter the Year: ");
scanf("%d",&n);
if (n%4==0);
{
printf("It is a leap Year");
}
else
{
printf ("It is not a leap Year");
}
getch();
}
Next Program »» Check whether a number is divisible by other or not


For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger