The following is the standard Ballerina hello program that shows how to print. Create a file using vim and run the hello.bal command:
//#vim hello.bal
//Ballerina base library for Input/Output messages
import ballerina/io;
// function main()
public function main()
{
io:println("You are reading PacktPub Hello example! ");
io:println("-------- Program End -------");
}