What is the difference between loop and while?
But a “while” is a loop…? This sounds like a homework question…use a search engine.