write a c program to convert fahrenheit to celsius?

Answers were Sorted based on User's Feedback



write a c program to convert fahrenheit to celsius?..

Answer / 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

write a c program to convert fahrenheit to celsius?..

Answer / faizan

/*Logic== C=(f-32)/1.8 ==*/


#include<stdio.h>
#include<conio.h>
#define f_low 0
#define f_max 250
#define step 25

void main()
{
typedef float real;
real fahrenheit,celsius;
clrscr();
fahrenheit=f_low;
printf("Fahrenheit Celsius\n\n");
while(fahrenheit<=f_max)
{
celsius=(fahrenheit-32.0)/1.8;
printf("%5.1f
%7.2f\n\n",fahrenheit,celsius);
fahrenheit=fahrenheit+step;
}
getch();
}

Is This Answer Correct ?    26 Yes 13 No

write a c program to convert fahrenheit to celsius?..

Answer / bukke ramesh naik

/* c=(f-32)/1.8 */#include<stdio.h>
#include<iomap.h>
#define fahern_low 0
#define fahern_max 250
void main()
float c,f;
clrscr();
f=fahern_low;
printf("fahernheat into celsius\n");

while(f<=fahern_max)
{
c=(f-32.0)/1.8;
f=f+c;

}
getch();
}

Is This Answer Correct ?    19 Yes 7 No

write a c program to convert fahrenheit to celsius?..

Answer / 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

More C Interview Questions

second highest number in a given set of numbers

3 Answers   TCS,


How to draw the flowchart for structure programs?

0 Answers  


what is c

1 Answers  


Why isnt there a numbered, multi-level break statement to break out

0 Answers  


write a program in c language that uses function to locate and return the smallest and largest integers in an array,number and their position in the array. it should also find and return the range of the numbers , that is , the difference between the largest number and the smallest.

1 Answers  






Why is c called c?

0 Answers  


What are the two forms of #include directive?

0 Answers   Aspire, Infogain,


Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


wat is the difference between array and pointer?

4 Answers   Wipro,


What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings

6 Answers  


What does the c in ctime mean?

0 Answers  


Dear Sir, we are required the bubble sorting programs Regs Prem

1 Answers  


Categories