Not an infinite loop either. It will execute once, num is 5 which is <= 5, enters loop, increments to 6 which is no longer <= 5 exits loop.
Type: Posts; User: Junky
Not an infinite loop either. It will execute once, num is 5 which is <= 5, enters loop, increments to 6 which is no longer <= 5 exits loop.
You need to make an attempt and write some code. When you get stuck post the code here using code tags. Include full error messages. Ask a specific question.