Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var C:real
- var F:real
- var X:real
- var Y:real
- var start:int
- put "Would you like to start with Celcius or Farenheit?(1 for C or 2 for F)"
- get start
- if start = 2
- then
- put "Enter a degree in Farenheit to find out the Celcius equivalent. It may be a decimal."
- get X
- Y:=(X-32) * 5/9
- put X, "F =", Y, "C."
- end if
- if start = 1
- then
- put "Enter a degree in Celcius to find out the Farenheit equivalent. It may be a decimal."
- get X
- Y:=X*1.8+32
- put X, "C =", Y, "F."
- end if
Add Comment
Please, Sign In to add comment