First of all, all numeric variable types initialize to 0. Your initializations are unnecessary.
You never use theend
You sould think about posing questions in proper capitalization and punctuation (notably, apostrophes...)
If you mean the number of zeroes [u]in</u>, that's actually much easier with strings.
Convert 100 to "100", and then examine each character for "0".
Start starts as 0. 0 Mod 5 = 0, so the while happens.
0 / 5 = 0, so start stays as 0
i gets incremented.
The while compares 0 Mod 5 again. and again. and again. Until i overflows.
Could you explain in a little more detail (and a little better writing) what it is that you want to do, and include what your results so far have been?
|