• Lua thread for Dummies
    4 replies, posted
:v:[B]So I just start learn lua for a week, and well have some idiot trouble solving simple lua exercise, and I want to make a thread for people who are noob with lua, or pro who want to help with such dumb question, you can post your question, your exercise so others can try solving and stuff[/B]:v: I am doing this on my phone so the post won't be pretty, gonna update it later And sorry for my broken english, still trying to improve it day by day [editline]23rd October 2016[/editline] First question: How to calculate 1x2x3x4x5x6x7x8x9x10 by for loop?
I'd think this would go in with the `Problems That Don't Need Their Own Thread` thread. [quote]First question: How to calculate 1x2x3x4x5x6x7x8x9x10 by for loop?[/QUOTE] [code] local num = 1 for i = 2, 10 do num = num * i end print(num) [/code]
I'm just scared that people gonna throw boxes and harass on me because my questions are stupid af [editline]23rd October 2016[/editline] Oh f*ck that was easy
Ignore them, we've all been newbies when starting out. You can ask anything you want, [b]as long as you gave it a shot and tried to solve it yourself before asking.[/b] And yes, sometimes you're going to ask stupid questions, we all do (even the pros), don't let that stop you.
Ok thanks for that, gonna close the post
Sorry, you need to Log In to post a reply to this thread.