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
Explain what are compound statements?
Write a program to show the change in position of a cursor using c
Why flag is used in c?
Why is not a pointer null after calling free?
Explain null pointer.
how do you execute a c program in unix.
Where can I get an ansi-compatible lint?
How do I swap bytes?
Which node is more powerful and can handle local information processing or graphics processing?
What is function prototype in c with example?
What is abstract data structure in c?
Why does everyone say not to use gets?
What is difference between arrays and pointers?
What are data structures in c and how to use them?
What does s c mean in text?