To write a BASIC program that converts Celsius to Fahrenheit, you can use the following code snippet:
<code class="language-basic">10 INPUT "Enter temperature in Celsius: ", C20 F = (C * 9/5) + 32 30 PRINT "Temperature in Fahrenheit: "; F
</code>
This program prompts the user to input a temperature in Celsius, calculates the equivalent in Fahrenheit using the formula ( F = (C \times \frac{9}{5}) + 32 ), and then displays the result.
Copyright © 2026 eLLeNow.com All Rights Reserved.