Home > Back-end >  Who is a great god help me to find out which is wrong, thanks!
Who is a great god help me to find out which is wrong, thanks!

Time:10-23

#include
Int main ()
{
int y;
The scanf (" % d ", & amp; Y);
If (y %==0 400)
{
Printf (" % d is a leap year ", y);
}
The else {
If (y % 4==0)
{
If (y %==0 100)
{
Printf (" % d is not a leap year ", y);
}
The else
{
Printf (" % d is a leap year ", y);
}

}
The else {
Printf (" % d is not a leap year ", y);
}
}
return 0;
}

CodePudding user response:

The original poster is not a baby? The perspective-taking once, I don't know what do you want to, what other people help you?

CodePudding user response:

reference 1/f, the frog studio reply:
the original poster is not a baby? The perspective-taking once, I don't know what do you want to, what other people help you?

I'm sorry, is the first time to learn, I want to use this program to judge a leap year, I think should be used if the else wrong, braces is more and more confused, I hope you can help, thank you for your interest in my criticism, I will try to improve,

CodePudding user response:

The examples of judging whether a leap year, c language programming books, carefully look for,