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

Explain how can you restore a redirected standard stream?

1099


How do you use a 'Local Block'?

1172


Tell me with an example the self-referential structure?

1014


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1993


What is the difference between char array and char pointer?

1055


What is array in c with example?

1256


How can I write functions that take a variable number of arguments?

1130


What are the data types present in c?

1163


What are the types of unary operators?

1189


Explain what are bus errors, memory faults, and core dumps?

1277


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2325


What is the meaning of typedef struct in c?

1069


What is the difference between a string and an array?

1207


What does calloc stand for?

1161


Why pointers are used in c?

1008