[404218]: / Code / C++ / C++ Tutorial Source Files / 21_C++_DoWhileLoop.cpp

Download this file

17 lines (12 with data), 190 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int index = 6;
do{
cout << index << endl;
index++;
}while(index <= 5);
return 0;
}