Wednesday, February 27, 2019

Cos, Sin, Tan - Python3

import math
a=int(input('Enter the number: '))
b=math.cos(math.radians(a))
c=math.sin(math.radians(a))
d=math.tan(math.radians(a))
print ('cosine = '+str(b)+'\nsine = '+str(c)+'\ntan = '+str(d))



ScreenShot:

No comments:

Post a Comment