write a programme to convert temperature from farenheit to celcius?

Answers were Sorted based on User's Feedback



write a programme to convert temperature from farenheit to celcius?..

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

write a programme to convert temperature from farenheit to celcius?..

Answer / prasanna kumar [cse dept. kln

#include<stdio.h>
#include<conio.h>
void main()
{
float farenheit,celsuis;
clrscr();
printf("Enter the farenheit:");
scanf("%f",&farenheit);
celsuis=(farenheit-32)/1.8;

printf("the celcius for the given farenheit is %f.",farenheit);
getch();
}

Is This Answer Correct ?    13 Yes 2 No

write a programme to convert temperature from farenheit to celcius?..

Answer / ramprasad

void main()
{
int a,b,c;
float d;
printf("Enter the farenheit value:");
scanf("%d",&a);
c=a/32;
d=c/1.8;
printf("The celcius value is\n",d);
getch();
}

Is This Answer Correct ?    10 Yes 6 No

write a programme to convert temperature from farenheit to celcius?..

Answer / yamuna

/* A.YAMUNA III BSC CS,L.R.G COLLEGE,TIRUPUR*/
#include<stdio.h>
#include<conio.h>
void main()
{
float f,c;
clrscr();
printf("Enter the Fahrenheit value:");
scanf("%f",&f);
c = (f-32)*5/9;
printf(" The Celsius value :%f",c);
getch();
}

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More C Interview Questions

What is a structure member in c?

0 Answers  


Why calloc is better than malloc?

0 Answers  


What does p mean in physics?

0 Answers  


how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"

4 Answers   Wipro,


Are local variables initialized to zero by default in c?

0 Answers  






What is break statement?

0 Answers  


c pgm count no of lines , blanks, tabs in a para(File concept)

2 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

0 Answers  


#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

14 Answers   CDAC, GATE, NDS, TCS,


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


write a program that will print %d in the output screen??

9 Answers   Infosys,


Categories