main()
{
int y;
scanf("%d",&y); // input given is 2000
if( (y%4==0 && y%100 != 0) || y%100 == 0 )
printf("%d is a leap year");
else
printf("%d is not a leap year");
}
Answer Posted / susie
Answer :
2000 is a leap year
Explanation:
An ordinary program to check if leap year or not.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
write a program for area of circumference of shapes
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Write a routine to implement the polymarker function
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Design an implement of the inputs functions for event mode
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
Sir... please give some important coding questions asked by product companies..
What is full form of PEPSI
Write a program to model an exploding firecracker in the xy plane using a particle system
How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
How to palindrom string in c language?
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
#include