Write a c pgm for leap year
Answer Posted / rina
#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 ? | 3 Yes | 11 No |
Post New Answer View All Answers
Dont ansi function prototypes render lint obsolete?
What are 'near' and 'far' pointers?
What is the use of in c?
Does c have an equivalent to pascals with statement?
How are portions of a program disabled in demo versions?
Is null equal to 0 in sql?
How can I do peek and poke in c?
What is the Purpose of 'extern' keyword in a function declaration?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is actual argument?
What are volatile variables in c?
How can you increase the size of a statically allocated array?
How can you read a directory in a C program?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area