The 'continue' keyword is used to skip the rest of the code inside loop for the currently executed loop and return to the "for" or "while" statement. Print only odd numbers 1, 3, 5, 7, 9.