Setvirtualresolution(640,480)
ResetTimer()
y#=Random(0,100)
y#=y#/10
x#=Random(0,50)
x#=x#/10
result#=Sqrt((x#*x#)+(y#*y#))
Repeat
Print("The hypotenuse of a right angled triangle")
Print("Base "+Str(x#,2)+", Height "+Str(y#,2)+" is "+Str(result#,4)+" units.")
Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)