# 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.

```js
{
    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.

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

#### **OUTPUT :**

> Hello, SRON! A new line is here


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sron.gitbook.io/docs/functions-in-sron/print-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
