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


Please Help Members By Posting Answers For Below Questions

What is echo in c programming?

551


Is c still relevant?

635


Write a program to check armstrong number in c?

631


Why string is used in c?

574


What is variable and explain rules to declare variable in c?

547






write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2263


define string ?

662


What do mean by network ?

648


Why is this loop always executing once?

613


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3047


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1701


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

657


Explain what is the difference between functions getch() and getche()?

601


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

653


Explain the difference between exit() and _exit() function?

630