Hello,
This is very simple. I am telling you free of cost. No need to waste money.... Take input from user by using Float.... Not take int or char.... Because duty cycle of every command in compiler is in microseconds... Like 1us for one line command.... when you take int or char for user input then it conversion its assume it as 0.000001 so our converted value will be approximately equal to 0.
But if you will use float. which use values in points like 1.2, 0.1 ...etc. and it will give accurate result in conversion. Hope it will work.
Don't think that i am from Pakistan.
Knowledge is free. It don't needs Limitation.
Thanks and Regards,
King Ali