Study Notes (12):. C ++ introductory courses -13 and do-while loop while

Learning immediately: https://edu.csdn.net/course/play/27250/359791?utm_source=blogtoedu

while   do--while

break: the end of the loop layer

continue: the end of this cycle, continues to skip the loop

// dowhile performed after the first determination; while performing the first determination

int j=0;

//while(j<10)

{

j++;

printf("j=%d\n",j);

}//

do

{

j++;

printf("j=%d\n",j);

}while(j<10);

Released nine original articles · won praise 0 · Views 66

Guess you like

Origin blog.csdn.net/qq_42044398/article/details/104333930