i am writing a code to convert c->f and i need to show the value after decimal.
So can you use floating point values and printf() with %f or %lf?
If you have to use integers couldn't you just scale by 10 or 100, and handle that in your output/display routines?
how do i represent it it assembly language. i am supposed to write a program to convert celcius to farenhiet. plzz help
So what's the problem? Presumably you have some prior coursework underpinning the assignment.
Which architecture are we talking about? Assembler is sufficiently different that this is an important detail to provide when asking a question.
You could represent 123.45 F as 12345
int f = 12345; printf("%3d.%02d\n", f / 100, f % 100);