Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 936 Bytes

File metadata and controls

44 lines (36 loc) · 936 Bytes

Jet examples

In this directory you can find some examples of a code written in Jet.

Most of the examples can be compiled and run with:

jetc [file-name] -o [file-name] && .\[file-name].exe

e.g.:

jetc hello-world.jet -o hello-world && .\hello-world.exe

Examples that are put in separate folders with jetpack.toml file require building with the Jetpack tool. Run the following command in the example's directory:

jetp build-run .
NameBrief description
Hello World A sample "hello world" program
Fibonacci sequence Prints a Fibonacci sequence up to a user-input number
Guess a number The program generates a random number and asks the user to guess it