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 / sarayu

void main()
{
int yr;
printf("Enter the year");
scanf("%d",yr);
if(yr%4==0)
printf("given year is leap year");
else
printf("It is not a leap year");
getch();
}

Is This Answer Correct ?    50 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a string is stored in c?

1070


Do you know the use of fflush() function?

1060


what are bit fields in c?

1716


Which is better oop or procedural?

1060


Is it possible to initialize a variable at the time it was declared?

1220


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1120


What is operator promotion?

1059


How does #define work?

1067


Explain the use of #pragma exit?

1175


How do I copy files?

1054


How to declare pointer variables?

1239


Explain what does the format %10.2 mean when included in a printf statement?

1361


What is sizeof return in c?

1035


What is the difference between text and binary i/o?

1051


Is there a way to compare two structure variables?

1114