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
What is echo in c programming?
Is c still relevant?
Write a program to check armstrong number in c?
Why string is used in c?
What is variable and explain rules to declare variable in c?
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.
define string ?
What do mean by network ?
Why is this loop always executing once?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain what is the difference between functions getch() and getche()?
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?
Explain the difference between exit() and _exit() function?