I take it you didn't change the printf to use %f - that looks like a floating point number printed with %d.
The reason the language has while and do-while and a few other constructs is exactly to avoid having goto's. They do the same thing in a more easy to read fashion.
--
Mats