tlang-runtime-compiler/TLangScriptRunner/test.tlang

17 lines
305 B
Plaintext
Raw Permalink Normal View History

2023-07-30 07:55:10 +00:00
print("Please say your age: ");
i = toNumber(readln());
if(i < 18)
{
if(i < 13)
println("You are a preteen");
else
println("You are a teenager");
}
else
{
if(i < 20)
println("You are an adult, but are still a teenager");
else
println("You are an adult");
}