write a c program to convert fahrenheit to celsius?

Answer Posted / azad sable,chiplun.

void main()
{
float fr,cent;
clrscr();
printf("enter the tempreture in F");
scanf("%f",&fr);
cent=5.0/9.0*(fr-32);
printf("\nTempreture in centigrade=%f",cent);
}
getch();
}

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1484


a c code by using memory allocation for add ,multiply of sprase matrixes

2288


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1501


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

702


Where is volatile variable stored?

637






Why is python slower than c?

591


What is the difference between malloc() and calloc()?

607


List the variables are used for writing doubly linked list program.

1607


Can you write a programmer for FACTORIAL using recursion?

602


Which header file is essential for using strcmp function?

927


How do you define a function?

576


What does c mean?

581


What are multidimensional arrays?

648


Explain About fork()?

636


write a program to generate address labels using structures?

3996