Search code examples
basic

Celsius to Fahrenheit trs-80 basic


Does anyone remember the old old old BASIC code for converting Fahrenheit to Celsius? I'd really appreciate it if someone would post the text.


Solution

  • Check out the following PDF, on page 40 (pdf page 57):

    The code would be something like, for Level II BASIC:

    10 INPUT "FAHRENHEIT: "; F
    20 C = 5 * (F - 32) / 9
    30 PRINT F; " FAHRENHEIT IS "; C; " CELSIUS"
    40 GOTO 10
    

    If you're using the Model I with Level I BASIC, or some other severely limited TRS-80, you may need something even simpler.