Ad
  • Custom User Avatar

    test case failed: test.assert_equals(nb_year(1000, 2.0, 50, 1214), 4)

    Step-by-Step Calculation:
    Year 1:

    Initial population: 1000
    Growth:
    1000
    ×
    2
    %

    20
    1000×2%=20
    New population:
    1000
    +
    20
    +
    50

    1070
    1000+20+50=1070
    Year 2:

    Initial population: 1070
    Growth:
    1070
    ×
    2
    %

    21.4
    1070×2%=21.4
    New population:
    1070
    +
    21.4
    +
    50

    1141.4
    1070+21.4+50=1141.4
    Year 3:

    Initial population: 1141.4
    Growth:
    1141.4
    ×
    2
    %

    22.828
    1141.4×2%=22.828
    New population:
    1141.4
    +
    22.828
    +
    50

    1214.228
    1141.4+22.828+50=1214.228

  • Custom User Avatar

    i already got the rules. sorry it's my bad.....

  • Custom User Avatar

    What's wrong in that board?

  • Custom User Avatar

    1 2 3 4 5 6 7 8 9
    2 3 4 5 6 7 8 9 1
    3 4 5 6 7 8 9 1 2
    4 5 6 7 8 9 1 2 3
    5 6 7 8 9 1 2 3 4
    6 7 8 9 1 2 3 4 5
    7 8 9 1 2 3 4 5 6
    8 9 1 2 3 4 5 6 7
    9 1 2 3 4 5 6 7 8

    Why it should got "Try again!" ?