Do-While Loop and Other Code Problems

http://pastebin.com/0CKCSzRG -- Please forgive me for the bad formatting.

What's wrong with my code? I am having difficulties finding why the loop continues to cycle. I would also like feedback on what could be done to improve my code.
while (keepGoing = true);

This should be == (comparing two values) not = (assigning values).
If you want feedback I would mention what exactly is your code trying to accomplish.
Last edited on
Oh yes, thanks. :)

I'm attempting to code a timer that increments a value every second and then displays that value in the format shown below (m:s). When the variable is equal to 60 (one minute), the program will exit.

Example:
1
2
3
4
5
6
7
8
9
10
11
12
13
0:00
0:01
0:02
....
0:06
0:07
0:08
0:09
0:10
0:11
0:12
....
1:00
Last edited on
Topic archived. No new replies allowed.