Print functions

These functions are used to print data on the terminal(or command line).

SRON provides two function for this:

  • print()

  • println()


1. println():

This function is used to print data on the terminal. After printing operation is done, it shifts the cursor to a new line.

{
    name : MAIN
    println("Hello, SRON!")
    println("A new line is here")
}

OUTPUT :

Hello, SRON! A new line is here

2. print():

This function is used to print data on the terminal same as println() but does not add a new line at the end.

{
    name : MAIN
    print("Hello, SRON!")
    println("A new line is here")
}

OUTPUT :

Hello, SRON! A new line is here

Last updated