Question: The issue I have in this program is that I need the output of these two to be in different lines. I dont know why

The issue I have in this program is that I need the output of these two to be in different lines. I dont know why is taking it as one whole line.

thanks

printf("*** Result of Conversion ***"); printf(" %f Fahrenheit = %f Celsius ",f ,c);

#include #include #include #include #include int main() { float f, c; printf("Enter a Fahrenheit temperature: "); scanf("%f", &f); c = (f - 32) * 5/9; printf("*** Result of Conversion ***"); printf(" %f Fahrenheit = %f Celsius ",f ,c); printf(" Press any key to exit the program ... "); getche(); }

output :

Enter a Fahrenheit temperature: 35.5

*** Result of Conversion *** 35.500000 Fahrenheit = 1.944444 Celsius

I need this output to be :

Enter a Fahrenheit temperature: 35.5

*** Result of Conversion ***

35.500000 Fahrenheit = 1.944444 Celsius

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!