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

How can you pass an array to a function by value?

0 Answers  


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

0 Answers  


Eight queens puzzle

0 Answers  


What is meant by initialization and how we initialize a variable?

0 Answers  


what is the importance of spanning tree?

0 Answers  






Why is python slower than c?

0 Answers  


Is there a way to switch on strings?

0 Answers  


char p="data"; printf(p);

2 Answers  


where do we use structure pointer?

1 Answers  


What are global variables and how do you declare them?

0 Answers  


Is c language still used?

0 Answers  


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  


Categories