Blame view

P37760_en/S003-AC.py 213 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
import math
import sys
import string

stream = sys.stdin
while True:
	n = stream.readline();
	if len(n) == 0:
		break
	n = string.atof(n)
	print "%.6f %.6f" % (math.sin(math.radians(n)),math.cos(math.radians(n)))