+ 2
In c when i try to divide two numbers in which denominator is multiplied by 1000 is often displaying me the output as 0?Why?
6 Respuestas
+ 3
you have to declare numbers in float type
+ 1
yes... as c by default consider all value as integer... so if your denominator > nenominator then the value will be 0...
+ 1
then how to solve this problem@ Amit H TO O
+ 1
declare two variable using float or double data type and assign nenominator and denominator... then devide..
+ 1
or you can write like this
float c;
c=a/1000;
where a is any number
+ 1
Tq very much @Amit H TO O .I got the correct answer