From ee8db7b69bb8aeec29ed133bd71033601600f414 Mon Sep 17 00:00:00 2001 From: "Md. Almas Ali" Date: Sat, 1 Jun 2024 17:15:44 +0600 Subject: [PATCH] feat: added io test examples. --- examples/io-test.rn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/io-test.rn diff --git a/examples/io-test.rn b/examples/io-test.rn new file mode 100644 index 0000000..a03e25a --- /dev/null +++ b/examples/io-test.rn @@ -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)