Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- copyright=[[
- Circle radius,lenght,square calculator by Ruslan Isaev
- ]]
- print("")
- print(copyright)
- print("")
- print("Type circle radius")
- radius=io.read()
- print("What do you want to do:S,L")
- op=io.read()
- if(op=='L') then
- print("LENGHT: ")
- print(2*3.14*radius)
- end
- if(op=='S') then
- print("SQUARE: ")
- print(3.14*radius^2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement