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
Explain how can a program be made to print the line number where an error occurs?
Explain what is the benefit of using const for declaring constants?
Can you write the function prototype, definition and mention the other requirements.
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Once I have used freopen, how can I get the original stdout (or stdin) back?
where are auto variables stored? What are the characteristics of an auto variable?
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
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is the difference between far and near ?
Why we use stdio h in c?
What is the best way to store flag values in a program?
What is this pointer in c plus plus?
What are enumerated types?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What are the benefits of organizational structure?