using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int i;
for(i=1;i<=10;i++)
cout<<i<<endl;
cout<<"\n\n Do while"<<endl;
int j=0;
do{
cout<<j<<endl;
j++;
}while(j<7);
return 0;
}

0 ulasan