import math g = 9.8 # 定数を宣言する print ("Velocity [m/s]?") V = float (input()) # 初速度の大きさを入力する print ("Angle [deg.]?") angle = float (input()) # 仰角を入力する theta = 3.14159 / 180.0 * angle T = 2.0 * V * math.sin (theta) / g X = V ** 2 * math.sin (2.0 * theta) / g print ("T = %9.3f, X = %9.3f" % (T, X)) # 結果を出力する