Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

0for i = 1, 100 do -- The range includes both ends. karlSum = karlSum + iend-- Use "100, 1, -1" as the range to count down:fredSum = 0for j = 100, 1, -1 do fredSum = fredSum + j end-- In general, the range is begin, end[, step].-- Another loop construct:r

RadAnimeBro answered on July 30, 2022 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • x = 0 for i in range(1, 6): x += i

  • 0for i = 1, 100 do -- The range includes both ends. karlSum = karlSum + iend-- Use "100, 1, -1" as the range to count down:fredSum = 0for j = 100, 1, -1 do fredSum = fredSum + j end-- In general, the range is begin, end[, step].-- Another loop construct:r

    0
    Popularity 1/10 Helpfulness 1/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on Jul 30 2022
    RadAnimeBro
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 1/10 Helpfulness 1/10 Language whatever
    Link to this answer
    Share Copy Link
    Contributed on Jul 30 2022
    RadAnimeBro
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.