write a programme to convert temperature from farenheit to celcius?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
main() { int i=5; printf("%d%d%d%d",i++,i--,i); }
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(); }
What is a far pointer in c?
What is a stream?
Why clrscr is used after variable declaration?
What is the output of printf("%d", printf("Hello"));?
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
How can you access memory located at a certain address?
What is #ifdef ? What is its application?
Explain #pragma statements.
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
Why c is called a middle level language?