write a c program to convert fahrenheit to celsius?
Answer Posted / ramanan
#include<stdio.h>
#include<conio.h>
void main()
{
float c,t;
clrscr();
printf("\n enter the celsius value...");
scanf("%f",&c)
f=(1.8*c)+32
printf("\n to converted fahernheit is ....%2.f",f);
getch();
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Which is the memory area not included in C program? give the reason
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Differentiate between #include<...> and #include '...'
Explain how do you view the path?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are the different properties of variable number of arguments?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Explain what are preprocessor directives?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Why we use conio h in c?
How does sizeof know array size?
Does * p ++ increment p or what it points to?
What is the collection of communication lines and routers called?