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
Why is c still so popular?
In a byte, what is the maximum decimal number that you can accommodate?
What is a loop?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
how to execute a program using if else condition and the output should enter number and the number is odd only...
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is scope rule in c?
What are the types of pointers in c?
Why c is called object oriented language?
Explain how do you print an address?
What are compound statements?
How can I find out if there are characters available for reading?
How do I round numbers?
How are 16- and 32-bit numbers stored?