c program for finding leap year using void
Answers
Answer:
#include <stdio.h>
int main() {
int year;
printf("Enter a year: ");
scanf("%d", &year);
if (year % 4 == 0) {
if (year % 100 == 0) {
// the year is a leap year if it is divisible by 400.
if (year % 400 == 0)
printf("%d is a leap year.", year);
else
printf("%d is not a leap year.", year);
} else
printf("%d is a leap year.", year);
} else
printf("%d is not a leap year.", year);
return 0;
}
Answer:
you r not supposed to tell me about what should i do
reported thats fine
u should probably say these same stupi.d lines to ppl who spread out nudity or post abusive things
dont come to my question ever again
remember you r just a kid
thanks