--- In [email protected], "rajatsaini4u" <rajatsain...@...> wrote:
>
> Here is my program in Turboc compiler(problem is described below it)
>
> sum=sum+s*pow(2,i);

Instead of using pow(), which is a floating point function, it would be better 
to use:

  sum += s * (1 << i);

Reply via email to