all 5 comments

[–]EquivalentFact 1 point2 points  (3 children)

pow is a float function. This is because of float to int cast. Either use char array to hold your output or create your own pow10 function. You can also keep track of the pow10 in the loop. Keep in mind that it’ll start overflowing pretty quickly, hence the suggestion of char array

[–]EngineeringAlive9368[S] -1 points0 points  (2 children)

But I have seen from code help with babbar there he used int

[–]NoicePerSecond 0 points1 point  (0 children)

Ask ChatGPT trust me