var myname : string put "what is your name?" get myname if Str.Lower (myname) = "erik" then put "Oh hey! We have the same name" else put myname , " is a really cool name! I like it!" end if put "" put "" var ent1 : real var ent2 : real put "Enter the first number" get ent1 put "Enter the second number" get ent2 if ent1 > ent2 then put ent1, " is larger" elsif ent2 > ent1 then put ent2, " is larger" elsif ent2 = ent1 then put ent1, " = ", ent2 end if put "" put "" var country : string put "What country are you from?" get country :* var score : int := 0 var ans : string if Str.Lower (country) = "canada" then put "Who is your prime minister?" get ans:* if Str.Lower(ans) = "justin trudeau" then put "correct!" score:=score + 1 else put "Incorrect!" end if put "What is the capital of Canada?" get ans:* if Str.Lower(ans) = "ottawa" then put "correct!" score:=score + 1 else put "Incorrect!" end if put "What is the capital of Ontario?" get ans:* if Str.Lower(ans) = "toronto" then put "correct!" score:=score + 1 else put "Incorrect!" end if put "You got ", score, "/3 correct! GOod job" else put "I don't have any trivia question for those regions" %I would put more countries but I was sick for 2 days and now I'm very behind end if put "" put "" var a, b, c : int :=0 put "Give me 3 numbers" get a, b, c if a <= b & a <= c then put a, " is the smallest number" elsif b <= a & b <= c then put b, " is the smallest number" elsif c <= a & c <= b then put c, " is the smallest number" end if if a >= b & a >= c then put a, " is the largest number" elsif b >= a & b >= c then put b, " is the largest number" elsif c >= a & c >= b then put c, " is the largest number" end if put "" put "" var num1, num2, answ : int randint(num1, 1, 12) randint(num2, 1, 12) put "What is ", num1, " x ", num2 get answ if answ = num1 * num2 then put "Correct!" else put "Incorrect!" put "Correct answer: ", num1 * num2 end if put "" randint(num1, 1, 12) randint(num2, 1, 12) put "What is ", num1, " + ", num2 get answ if answ = num1 + num2 then put "Correct!" else put "Incorrect!" put "Correct answer: ", num1 + num2 end if put "" randint(num1, 12, 24) randint(num2, 1, 12) put "What is ", num1, " - ", num2 get answ if answ = num1 - num2 then put "Correct!" else put "Incorrect!" put "Correct answer: ", num1 - num2 end if