Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start:
- TextWindow.Write("Fahrenheit to Celcius? (Type 1) or Celcius to Fahrenheit? (Type in 2): ")
- selection = TextWindow.Read()
- If selection = "1" Then
- TextWindow.Write("Enter temperature in Fahrenheit: ")
- fahr = TextWindow.ReadNumber()
- celsius = 5 * (fahr-32) / 9
- TextWindow.WriteLine("Temperature in Celcius is " + celsius)
- Else
- TextWindow.Write("Enter temperature in Celcius: ")
- celsius = TextWindow.ReadNumber()
- fahr = (celsius * 9/5) + 32
- TextWindow.WriteLine("Temperature in Fahrenheit is " + fahr)
- EndIf
- TextWindow.Write("Go again? y/n : ")
- repeatchoice = TextWindow.Read()
- If repeatchoice = "y" Then
- Goto start
- Else
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement