Question: Problem 1: Write a C program that will convert temperature from Fahrenheit to Celsius and display output on screen Hint: Celsius to Fahrenheit Buggy Code

 Problem 1: Write a C program that will convert temperature from

Problem 1:

Write a C program that will convert temperature from Fahrenheit to Celsius and display output

on screen Hint: Celsius to Fahrenheit Buggy Code is given below.

I am using the GDB online program non of the existing codes are working

#include int main (void) f double tempc; / temperature in Celsius / double tempf; /* temperature in Fahrenheit printf ("Enter value of temp in Celsius:" scanf("1", &tempc); printf (" Value of temp in Celsius : %lf ", tempc); tempftempc(9.0/5.0)32.0; printf ("Temperature in Fahrenheit: %lf " , tempf); return 0 /execution terminates ok/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!