How do I do this program?

But it's not the code you posted before, so my comments make little sense.

Guess how quickly x gets incremented