Lua - Demonstrate the example of variable declaration Code Example

The code for Demonstrate the example of variable declaration

-- Variable definition:
local a, b

-- Initialization
a = 10
b = 30

print("value of a:", a)

print("\nvalue of b:", b)

--[[
Output:
value of a:	10
value of b:	30
--]]
Code by IncludeHelp, on August 25, 2022 22:35

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.