Lua Program to Print Hello world! – Programming Code Examples
Lua

Lua Program to Print Hello world!1 min read

Lua is an extensible, lightweight programming language written in C. It started as an in-house project in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes.

It was designed from the beginning to be a software that can be integrated with the code written in C and other conventional languages. This integration brings many benefits. It does not try to do what C can already do but aims at offering what C is not good at: a good distance from the hardware, dynamic structures, no redundancies, ease of testing and debugging. For this, Lua has a safe environment, automatic memory management, and good facilities for handling strings and other kinds of data with dynamic size.




A simple program that displays “Hello, World!”. It’s often used to illustrate the syntax of the language.

In this program, we have used the built-in io.write function to print the string Hello, world! on our screen.

Output:

Lua Program to Print Hello world!

Leave a Comment