Wednesday 4 July 2012

Lecture: 110


                                                Lecture 110

// Loop do while
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
{  
      int i;
      cout<<"Even number: ";     
      i=0;
      do{
          cout<<i<<" ";     
          i+=2;
        }while(i<=10); 
  getch();
  return 0;
}
Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10