Write a c pgm for leap year
Answer Posted / venkata rao padala
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter the year");
scanf("%d",&n);
if(n%4)
{
printf("the year is leap year");
else
printf("not leap year);
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
Why static variable is used in c?
What is the difference between memcpy and memmove?
How do you print only part of a string?
How can I do graphics in c?
What is the value of c?
What are reserved words with a programming language?
largest Of three Number using without if condition?
How can I get back to the interactive keyboard if stdin is redirected?
Define and explain about ! Operator?
how do you execute a c program in unix.
Explain the process of converting a Tree into a Binary Tree.
What is #define size in c?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Did c have any year 2000 problems?
I have seen function declarations that look like this