Advertisement
7367network

My code for 12.9.6

Nov 20th, 2021
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import math
  2. angles = [0, 90, 180, 270, 360]
  3. print("The list of angles are: " + str(angles))
  4. #radians = []
  5. count = -4
  6. for angle in angles:
  7. if count % 2 != 0:
  8. print("The angle value of "+str(angle)+" has sine value of "+str(round(math.sin(angle), 0)))
  9. else:
  10. print("The radian value of "+str(angle)+" has cosine value of "+str(round(math.cos(angle), 0)))
  11. count = count + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement