i have used pow(10,m-i-1) but its giving 1 less than the correct answer so i have used lround() function with a bit of googling ,but still dont know what was wrong without using it why not giving correct output
Pow function giving 1 less than correct answer
yes in ide its working but in my local pc its showing 1 less output without round function
Hey @mdhammad139
That must be some issue with your compiler you have to google for that ,We can’t help you
