Ez a videó do... while ciklust mutatja be. Először cselekszik a program, utána dönti el a program, megismételje e a cselekvést.
Forráskód:
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int saw=9;
do{
cout<<"Hajra PAOK!!!"<<endl;
}while(saw<5);
return 0;
}
Videó: