How can i write a BASIC programme using the convertion degree celsius to degree Fahrenheit?

1 answer

Answer

1000398

2026-08-20 13:40

+ Follow

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: ", C

20 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.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.