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!





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.