Initial commit
This commit is contained in:
8
examples/loop.io
Normal file
8
examples/loop.io
Normal file
@@ -0,0 +1,8 @@
|
||||
let int myNum 1;
|
||||
|
||||
while myNum != 1001 {
|
||||
println myNum;
|
||||
myNum = myNum + 1;
|
||||
}
|
||||
|
||||
println "The loop has ended";
|
4
examples/names.io
Normal file
4
examples/names.io
Normal file
@@ -0,0 +1,4 @@
|
||||
println "Hello there!";
|
||||
print "What is your name? ";
|
||||
let str yourName input;
|
||||
println "Hello, " + yourName + "!";
|
5
examples/password.io
Normal file
5
examples/password.io
Normal file
@@ -0,0 +1,5 @@
|
||||
print "Enter your password: ";
|
||||
let str passwdInput input;
|
||||
if passwdInput == "dingus" {
|
||||
println "Thank you for entering the right password.";
|
||||
}
|
12
examples/test.io
Normal file
12
examples/test.io
Normal file
@@ -0,0 +1,12 @@
|
||||
let str thing1 "dingus";
|
||||
let str thing2 "dingus";
|
||||
|
||||
if thing1 == thing2 {
|
||||
println "thing 1 and thing 2 are the same";
|
||||
}
|
||||
|
||||
print "this is printing something without a new line";
|
||||
println " this is coming from a seperate print statement lols";
|
||||
|
||||
print "Say some wise words... ";
|
||||
println "Ah, '" + input + "', some very wise words indeed!";
|
Reference in New Issue
Block a user