DO WHILE LOOP

In C programming, the do-while loop is another type of loop that is similar to the while loop. The primary difference is that the do-while loop guarantees that the body of the loop is executed at least once, as the condition is checked after the loop body. The general syntax of a do-while loop is as follows:

Initialize count value.

do{

Process

}while(comparision);

//In do while , we are first processing the code then comparing the counter value.

#includ<stdio.h>

void main()

{

  int i=0;

  do

{

  i++

  printf(“%d”, i);

}

  while(i<=10);

}