Lecture 126
// Loop do while
//Break for loop
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int i;
i=1;
do
{
if(i==5) break;
cout<<i<<" ";
i++;
}while(i<10);
getch();
return
0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10