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:-
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
This Program also works on the principle of even/odd number program and its coding goes like this:-
#include <stdio.h>Next Program »» Check whether a number is divisible by other or not
#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();
}
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