write a programme to convert temperature from farenheit to celcius?

Answer Posted / hasitbhatt

/*
Hasit P. Bhatt
Institute Of Technology,Nirma University,Ahmedabad.
hasit.p.bhatt@gmail.com
http://facebook.com/hasit.p.bhatt.page
*/
#include<stdio.h>
#include<conio.h>

void main()
{
float faren;
clrscr();
printf("Enter the farenheit value:");
scanf("%f",&faren);
printf("%.2f",(faren-32)*5/9.0);
getch();
}

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a program be made to print the line number where an error occurs?

695


Explain what is the benefit of using const for declaring constants?

617


Can you write the function prototype, definition and mention the other requirements.

664


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

613


Once I have used freopen, how can I get the original stdout (or stdin) back?

629






where are auto variables stored? What are the characteristics of an auto variable?

596


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

688


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1498


What is the difference between far and near ?

688


Why we use stdio h in c?

585


What is the best way to store flag values in a program?

581


What is this pointer in c plus plus?

599


What are enumerated types?

656


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

626


What are the benefits of organizational structure?

575