Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Number 7
  2. !PRINT "Please input the radius."
  3. !INPUT r
  4. !LET area=3.14*r^2
  5. !LET circumference=2*r*3.14
  6. !PRINT "Would you like to:"
  7. !PRINT "1. Find the area"
  8. !PRINT "2. Find the circumference"
  9. !INPUT choice
  10. !IF choice=1 then
  11. !   PRINT "Radius","Area"
  12. !   PRINT r,area
  13. !ELSEIF choice=2 then
  14. !   PRINT "Radius","Circumference"
  15. !   PRINT r,circumference
  16. !ELSE
  17. !   PRINT "That was not valid."
  18. !END IF
  19. !END
  20.  
  21. !Number 8
  22. !PRINT "Side 1?"
  23. !INPUT l1
  24. !PRINT "Side 2?"
  25. !INPUT l2
  26. !PRINT "Side 3?"
  27. !INPUT l3
  28. !LET s3=l3^2
  29. !LET s2=l2^2
  30. !LET s1=l1^2
  31. !IF s3=s2*s1 then
  32. !   PRINT "You have a right triangle!"
  33. !ELSEIF s2=s1*s3 then
  34. !   PRINT "You have a right triangle!"
  35. !ELSEIF s1=s2*s3 then
  36. !   PRINT "You have a right triangle!"
  37. !ELSE
  38. !   PRINT "You do not have a right triangle. ):"
  39. !END IF
  40. !END
  41.  
  42. !Number 9
  43. !PRINT "Input your X point."
  44. !INPUT X
  45. !PRINT "Input your Y point."
  46. !INPUT Y
  47. !IF X>0 and Y>0 then
  48. !   PRINT "Your point is in quadrant 1."
  49. !ELSEIF x<0 and y>0 then
  50. !   PRINT "Your point is in quadrant 2."
  51. !ELSEIF x<0 and y<0 then
  52. !   PRINT "Your point is in quadrant 3."
  53. !ELSEIF x>0 and y<0 then
  54. !   PRINT "Your point is in quadrant 4."
  55. !ELSE
  56. !   PRINT "Your point is the origin!"
  57. !END IF
  58. !END
  59.  
  60. !Number 10
  61. !PRINT "Input your X point."
  62. !INPUT X
  63. !PRINT "Input your Y point."
  64. !INPUT Y
  65. !IF X>0 and Y>0 then
  66. !   PRINT "Your point is in quadrant 1."
  67. !ELSEIF x<0 and y>0 then
  68. !   PRINT "Your point is in quadrant 2."
  69. !ELSEIF x<0 and y<0 then
  70. !   PRINT "Your point is in quadrant 3."
  71. !ELSEIF x>0 and y<0 then
  72. !   PRINT "Your point is in quadrant 4."
  73. !ELSEIF X=0 and y=0 then
  74. !   PRINT "Your point is the origin!"
  75. !ELSEIF X=0 and y<>0 then
  76. !   print "Your point is on the Y axis."
  77. !ELSEIF X<>0 and Y=0 then
  78. !   print "Your point is on the X axis."
  79. !END IF
  80. !END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement