Documentations - SRON
  • SRON's Official Documentation
  • Installation
  • Syntax of SRON
  • Executing a SRON code
  • Keywords in SRON
  • Comments in SRON
  • Datatypes in SRON
  • Variables in SRON
  • Memory Ownership Model
  • Operators in SRON
  • Math block
  • if elif else in SRON
  • Loops in SRON
    • For Loop
    • While Loop
    • Foreach Loop
  • Break & Continue
  • Functions in SRON
    • Print functions
    • User Input Functions
    • Type Conversion functions
    • Type Checking functions
    • Math functions
    • Char Functions
    • String Functions
    • List Functions
    • Miscellaneous functions
  • Return in SRON
  • Command Line Arguments
  • Free
  • Rotate
  • Console
  • Sample codes
  • Coding Convention
  • Frequently Asked Questions
  • Credits
  • Contact
  • Donate
Powered by GitBook
On this page
  • 1. println():
  • 2. print():
  1. Functions in SRON

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

PreviousFunctions in SRONNextUser Input Functions

Last updated 6 months ago