write a c program to convert fahrenheit to celsius?
Answer Posted / 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 |
Post New Answer View All Answers
What are the parts of c program?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the g value paradox?
Why does this code crash?
How to declare a variable?
What is the use of header?
Why c is called procedure oriented language?
Is there any possibility to create customized header file with c programming language?
What is a far pointer in c?
How can I automatically locate a programs configuration files in the same directory as the executable?
Why is event driven programming or procedural programming, better within specific scenario?
Explain what is the difference between far and near ?
Explain do array subscripts always start with zero?
Explain logical errors? Compare with syntax errors.
What is ## preprocessor operator in c?