“cara mencetak di lua” Kode Jawaban

Lua Print

print("text here")

-- or

extra = "more text"

print("text here " .. extra)
RexNC

Lua Print

-- print "Hello, World!

print("Hello, World!")

-- or

x = "Hello, World!"
print(x)
Lazy Lizard

Lua Print Hi

print("Hi") --prints hi
Bloody Bat

cara mencetak di lua

print("text"..v) -- "" for strings, '..' to concencate, type name of variable to print variable
Obnoxious Owl

cara mencetak di lua

print("Hello world") -- prints a message into the console, which is called a string..

-- IF YOU WANTED TO USE A VARIABLED vv

local x = "Hello!" -- a variable has a value, for this case, a string.
print(x) -- We still print it in the console, it's that it's a nice, faster way of doing it.
-- Also helpful if you want to re-use code if it's used a lot in a program you make..
Opal

Jawaban yang mirip dengan “cara mencetak di lua”

Pertanyaan yang mirip dengan “cara mencetak di lua”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya