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
Is struct oop?
Give differences between - new and malloc() , delete and free() ?
What is the difference between typedef and #define?
What is void c?
What is an array? What the different types of arrays in c?
How we can insert comments in a c program?
What is a node in c?
Explain which function in c can be used to append a string to another string?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are the different types of errors?
What are the different types of linkage exist in c?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What is a list in c?
swap 2 numbers without using third variable?
What is the function of this pointer?