Coding in JW Lua - #1 Introduction to Lua | Finale Superuser

preview_player
Показать описание
.
It's finally here! Welcome to the series on How To Code in JW Lua. We're going to have a great time.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Рекомендации по теме
Комментарии
Автор

Thanks for this series! Very helpful.


Homework solutions:

1.
for i = 1, 10, 1 do
print(i^2)
end

2.
for i = 1, 50, 1 do
print(i*2)
end

3.
for i = 1, 50, 1 do
print(2^i)
end

4.
local favFlavor = 'mint chocolate chip'
-- obviously --
print('My favorite flavor of ice cream is '..favFlavor..'.')

chins
Автор

Hallo Nick! A very nice video. I should watch it 6-7 times; one for each data type...:))) Thanks to the user:
"Conor Chinitz" by the way for the string concatenation operator (2dots) idea. I did not know that.
Here are my homework solutions:

print [[--Homework Nr.1: "Print the First 10 Perfect Squares"

Var.1:
]]

for i =1, 10, 1 do
print(i^2)
end
print [[

]]
print [[

Var.2:
]]
for i =1, 10, 1 do
print(i*i)
end
print [[

]]
print [[--Homework Nr.2: "Print The first 50 even numbers"

]]
for i =0, 100, 2 do
print(i)
end
print [[

]]
print [[--Homework Nr.3: "Print The first 50 Powers of 2"

]]
for i = 1, 50, 1 do
print(2^i)
end
print [[

]]
print [[--Homework Nr.4: "Print my favorite ice cream flavor"

]]
local icecream = "chocolate "
print [[You asked me which flavor of ice cream is my favorite!
]]
print ("I can tell you, that I like " ..icecream.."very much!")
print [[This is by the way a drawing of my favorite ice cream:]]
print[[

o o
{ooo} {ooo}

{ooo} {ooo}




XXXX
XX
\/ ]]

electricodysseas