Search:

Type: Posts; User: Spanky_10

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,276

    Re: Cannot figure out why my code won't work!

    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...
  2. Replies
    6
    Views
    1,276

    Re: Cannot figure out why my code won't work!

    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.
  3. Replies
    6
    Views
    1,276

    Cannot figure out why my code won't work!

    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,...
Results 1 to 3 of 3