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
How a string is stored in c?
Do you know the use of fflush() function?
what are bit fields in c?
Which is better oop or procedural?
Is it possible to initialize a variable at the time it was declared?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is operator promotion?
How does #define work?
Explain the use of #pragma exit?
How do I copy files?
How to declare pointer variables?
Explain what does the format %10.2 mean when included in a printf statement?
What is sizeof return in c?
What is the difference between text and binary i/o?
Is there a way to compare two structure variables?