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 / kumari rina

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter the year");
scanf("%d",&n);
if(n%100==0)
{
if(n%400==0)
{
printf("\n year is leap year");
}
else
{
printf("\n year is not leep year");
}
}
else
{
if(n%4)
{
printf("\n year is leap year");
}
else
{
printf("\nyear is not leap year");

}
}
getch();
}

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new line escape sequence?

1265


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

2155


What is the difference between class and object in c?

1088


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2813


What are actual arguments?

1046


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1259


What header files do I need in order to define the standard library functions I use?

998


What is the difference between union and anonymous union?

1249


Write a program for Overriding.

1121


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3259


What is the process of writing the null pointer?

980


Why we use break in c?

935


How was c created?

997


Explain how can a program be made to print the name of a source file where an error occurs?

1134


What do you mean by dynamic memory allocation in c?

1050