Write a program toconvert from Fahrenheit to Celsius :

Tc =(5/9)*(Tf-32)

Tc : Celsius

Tf : fahrenheit

Recommended Answers

All 3 Replies

Good luck with your homework :)

thanx for ur support ..

Nirmeen, if we do your homework for you, what do you learn? Nothing at all!

You posted the formula:
Tc =(5/9)*(Tf-32)

Tc : Celsius

Tf : fahrenheit

So.... not the above formula but works..
Begin by subtracting 32 from the Fahrenheit number.
Divide the answer by 9.
Then multiply that answer by 5.

Now what Asm mnemonics are there to do that? (assuming x86) we have add, sub, mul, div right? So... how would you code that? Think about it...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.