Skip to content

Commit

Permalink
feat: added io test examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed Jun 1, 2024
1 parent a85483a commit ee8db7b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/io-test.rn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import io

var int_num = io.Input.get_int("Enter an integer number: ")
print(int_num)

var float_num = io.Input.get_float("Enter a float number: ")
print(float_num)

var str_val = io.Input.get_string("Enter a string: ")
print(str_val)

var password = io.Input.get_password("Enter a password: ")
print(password)

# issue here
var val = input("Enter a value: ")
io.Output.write(val)

0 comments on commit ee8db7b

Please sign in to comment.