Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Number 7
- !PRINT "Please input the radius."
- !INPUT r
- !LET area=3.14*r^2
- !LET circumference=2*r*3.14
- !PRINT "Would you like to:"
- !PRINT "1. Find the area"
- !PRINT "2. Find the circumference"
- !INPUT choice
- !IF choice=1 then
- ! PRINT "Radius","Area"
- ! PRINT r,area
- !ELSEIF choice=2 then
- ! PRINT "Radius","Circumference"
- ! PRINT r,circumference
- !ELSE
- ! PRINT "That was not valid."
- !END IF
- !END
- !Number 8
- !PRINT "Side 1?"
- !INPUT l1
- !PRINT "Side 2?"
- !INPUT l2
- !PRINT "Side 3?"
- !INPUT l3
- !LET s3=l3^2
- !LET s2=l2^2
- !LET s1=l1^2
- !IF s3=s2*s1 then
- ! PRINT "You have a right triangle!"
- !ELSEIF s2=s1*s3 then
- ! PRINT "You have a right triangle!"
- !ELSEIF s1=s2*s3 then
- ! PRINT "You have a right triangle!"
- !ELSE
- ! PRINT "You do not have a right triangle. ):"
- !END IF
- !END
- !Number 9
- !PRINT "Input your X point."
- !INPUT X
- !PRINT "Input your Y point."
- !INPUT Y
- !IF X>0 and Y>0 then
- ! PRINT "Your point is in quadrant 1."
- !ELSEIF x<0 and y>0 then
- ! PRINT "Your point is in quadrant 2."
- !ELSEIF x<0 and y<0 then
- ! PRINT "Your point is in quadrant 3."
- !ELSEIF x>0 and y<0 then
- ! PRINT "Your point is in quadrant 4."
- !ELSE
- ! PRINT "Your point is the origin!"
- !END IF
- !END
- !Number 10
- !PRINT "Input your X point."
- !INPUT X
- !PRINT "Input your Y point."
- !INPUT Y
- !IF X>0 and Y>0 then
- ! PRINT "Your point is in quadrant 1."
- !ELSEIF x<0 and y>0 then
- ! PRINT "Your point is in quadrant 2."
- !ELSEIF x<0 and y<0 then
- ! PRINT "Your point is in quadrant 3."
- !ELSEIF x>0 and y<0 then
- ! PRINT "Your point is in quadrant 4."
- !ELSEIF X=0 and y=0 then
- ! PRINT "Your point is the origin!"
- !ELSEIF X=0 and y<>0 then
- ! print "Your point is on the Y axis."
- !ELSEIF X<>0 and Y=0 then
- ! print "Your point is on the X axis."
- !END IF
- !END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement