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 / narayan sharma

#include<stdio.h>
#include<conio.h>
void main()
{
int y;
clrscr();
printf("\n\n\t Enter The Year\n\n\t");
scanf("%d",&y);
if (y%100==0)
{
if (y%400==0)
printf("\n\n\t Leep Year\n\n");
else
printf("\n\n\tNot Leep\n\n\t");
}
else
{
if (y%4==0)
printf("\n\n\t Leep Year\n\n\t");
else
printf("\n\n\t Not Leep");
}
getch();
}

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of pointers?

1076


What are the general description for loop statement and available loop types in c?

1136


what is event driven software and what is procedural driven software?

2591


What is difference between structure and union with example?

1079


What is the scope of static variable in c?

1036


How will you divide two numbers in a MACRO?

1148


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1996


How many loops are there in c?

1121


Write a program of advanced Fibonacci series.

1165


What is void pointers in c?

1023


What is file in c language?

1016


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1780


How can I read a binary data file properly?

1184


what does static variable mean?

1122


What is C language ?

1976