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

Explain the difference between null pointer and void pointer.

673


Should a function contain a return statement if it does not return a value?

599


What is bin sh c?

584


Explain what is the difference between a free-standing and a hosted environment?

635


What is data structure in c and its types?

596






What are pointers in C? Give an example where to illustrate their significance.

751


Does c have function or method?

591


How can a process change an environment variable in its caller?

656


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1469


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

734


Explain what header files do I need in order to define the standard library functions I use?

649


What is break in c?

587


Write a program in c to replace any vowel in a string with z?

698


Describe the order of precedence with regards to operators in C.

633


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1802