I fixed my code to proper format. I input a year, such as 2012, which should output: 2012 is a leap year. But instead nothing outputs. I get the output from my first S.o.p statement at the beginning...
Type: Posts; User: Spanky_10
I fixed my code to proper format. I input a year, such as 2012, which should output: 2012 is a leap year. But instead nothing outputs. I get the output from my first S.o.p statement at the beginning...
Output:
This program will determine whether a year is a leap year!
Please enter a year:
2016
I enter a year and it does not give me any of the system.out.println statements like it should.
Here is my code that is going to take a user input year and output whether it is a leap year or not.
A year is a leap year if it is divisible by 4, unless it is divisible by 100 but not 400.
Also,...