Consider you have a Rubik cube with different colors in each face. To solve this cube, you will continue to rotate the sides until you reach same colors in all faces. This is a real time example for which looping statements?
Answer options
A
While loop
B
FOR loop
C
Bubble Sort
D
Merge Sort
Correct answer: While loop
Explanation
The correct answer is: While loop.