1911 · Loops in C/C come into use when we need to repeatedly execute a block of statements During the study of 'for' loop in C or C, we have seen that the number of iterations is known beforehand, ie the number of times the loop body is needed to be executed is known to usThe while loop in C/C is used in situations where we do not know the exact number of iterations of loopC = 0 p = 10 count = int(input("Enter the number of values ")) while(c@(3);} int i = 1;while (i 6) { ConsoleWriteLine(i);
C While Loop W3resource