From 1744d9dff4f372ed15dada6766a17b05c26e5f33 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Thu, 27 Jul 2023 23:10:18 -0500 Subject: formatting --- examples/chatbot.sloth | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/chatbot.sloth (limited to 'examples') diff --git a/examples/chatbot.sloth b/examples/chatbot.sloth new file mode 100644 index 0000000..01f7701 --- /dev/null +++ b/examples/chatbot.sloth @@ -0,0 +1,12 @@ +fn main() Int { + var run: Bool = true; + while run == true { + println("Hello! How are you?"); + print("User> "); + var input: String = readln(); + if sequals(input, "bad") { + println("lmao sucks"); + } + } + return 0; +} -- cgit v1.2.3