TCH BI Bipsmedium While Loop in C with Example A while loop in C is used to execute and repeat a block of statements based on a certain condition.