أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
the differnce between while loop and do while loop is simply with a do while loop your program tells the compliler to do whatever you want to first then checking your condtion..
but the while it will check your condtion first
for example:
while( x !=) {
x = x+5;
}
do {
x * x;
}while(x!=);