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
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Why do some versions of toupper act strangely if given an upper-case letter?
How to write a multi-statement macro?
Here is a neat trick for checking whether two strings are equal
What are the advantages of using Unions?
How can I call a function with an argument list built up at run time?
What are pointers in C? Give an example where to illustrate their significance.
What is function prototype in c with example?
Where are local variables stored in c?
largest Of three Number using without if condition?
Why is sprintf unsafe?
Can we declare variable anywhere in c?
what is a constant pointer in C
Explain zero based addressing.
What are run-time errors?