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

Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?

4 Answers   Oracle,


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,


What is the scope of static variables?

1 Answers  


in which language c language is written?

2 Answers  


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,






I want tcs placement papers of 2004-2009 , its urgent

6 Answers   TCS, Wipro,


How can you tell whether two strings are the same?

0 Answers  


what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 Answers  


int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 Answers   HCL,


what are the files which are automatically opened when a c file is executed?

3 Answers  


Why can't we initialise member variable of a strucutre

1 Answers  


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


Categories