As 'for loop' executes the specified number of times, the while loop executes while a condition is true.