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
What does a pointer variable always consist of?
Is c high or low level?
what is the difference between 123 and 0123 in c?
What is a sequential access file?
What is auto keyword in c?
Explain the array representation of a binary tree in C.
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Why do we use namespace feature?
What is your stream meaning?
Explain what is a 'locale'?
What are the types of assignment statements?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What is difference between %d and %i in c?
What are the differences between new and malloc in C?
Is c procedural or functional?