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

#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int y;
cout<<"enter any number ";
cin>>y;
if(y%4==0;)
cout<<"the number entered is a leap year ";
else
cout<<"it is not a leap year ";
getch();
}

Is This Answer Correct ?    10 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using new operator as compared to the function malloc ()?

1273


i got 75% in all semester am i eligible for your company

2173


What is the purpose of & in scanf?

1012


Explain modulus operator.

1002


What are runtime error?

1084


Why c is called free form language?

971


What is the use of getch ()?

1039


What are pointers? Why are they used?

1116


What is c variable?

1000


What is return type in c?

1080


Explain what is the use of a semicolon (;) at the end of every program statement?

1186


What is c language & why it is used?

1037


Write a program to reverse a linked list in c.

1068


What are the functions to open and close the file in c language?

989


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3852