Lecture 57
// Loop For
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int i;
cout<<"Odd number: ";
for(i=1;i<10;i+=2)
cout<<i<<" ";
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10