Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a c pgm for leap year

Answer Posted / aniket

#include <stdio.h>
#include <conio.h>

void main()
{
int year;
clrscr();

printf("\n\t : TO CHECK LEAP YEAR :");
printf("\n Enter your year : ");
scanf("%d", &year);

if((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
{
printf("\n\a L E A P Y E A R");
}
else
{
printf("\n\a N O T L E A P Y E A R");
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %d called in c?

1189


Can a file other than a .h file be included with #include?

1117


What do the functions atoi(), itoa() and gcvt() do?

1152


What is main () in c?

1028


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2312


How many loops are there in c?

1066


How will you find a duplicate number in a array without negating the nos ?

2103


Describe the header file and its usage in c programming?

1032


Why main is not a keyword in c?

1198


How is = symbol different from == symbol in c programming?

996


What is %s and %d in c?

990


What does a pointer variable always consist of?

1057


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1200


What is structure and union in c?

1091


Write a program for finding factorial of a number.

1046