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

Explain what are compound statements?

1102


Write a program to show the change in position of a cursor using c

1122


Why flag is used in c?

1180


Why is not a pointer null after calling free?

1073


Explain null pointer.

1189


how do you execute a c program in unix.

1157


Where can I get an ansi-compatible lint?

1201


How do I swap bytes?

1118


Which node is more powerful and can handle local information processing or graphics processing?

1370


What is function prototype in c with example?

1160


What is abstract data structure in c?

1108


Why does everyone say not to use gets?

1198


What is difference between arrays and pointers?

1148


What are data structures in c and how to use them?

1219


What does s c mean in text?

1141