Skip to content
gene-2012 edited this page Jan 6, 2024 · 1 revision

Output Syntax

Usage

First, import the io module. Then, use the io.print(<text or number>) to print a text or a number, similar to the print() function in Python.

import io;
io.print(<text or number>);

Example

// This file is at examples/hello_world.phi
import io;
import os;
io.print("Hello, World!");
os.system("pause");

Clone this wiki locally