Im trying to: determine how fast your computer is, and how much console output slows it down. Write a while loop that counts from 1 to 1,000,000,000 by 1?s. Use the modulo operator to determine when the count is a multiple of 100,000,000 and print that value on the screen.
This is what I have however it is only printing 00:
Question
Terabojin
Hey guys,
Im trying to: determine how fast your computer is, and how much console output slows it down. Write a while loop that counts from 1 to 1,000,000,000 by 1?s. Use the modulo operator to determine when the count is a multiple of 100,000,000 and print that value on the screen.
This is what I have however it is only printing 00:
And here is the printout:
Any ideas why its not printing out the multiples of 100,000,000?
Link to comment
Share on other sites
13 answers to this question
Recommended Posts