Setvirtualresolution(640,480)
Distance#=20.2
Angle#=24.0
Repeat
Print("An observer stands")
Print(Str(Distance#,2)+" metres from the base of a tree,")
Print("looking at the top of the tree)"
Print("the angle formed with the")
Print("ground is "+Str(Angle#,2)+" degrees.")
Print("")
Print("How tall is the tree?")
Height#=Distance#*Tan(Angle#)
Print("The tree is "+Str(Height#,2)+" metres tall.")
Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)