Wednesday 30 May 2012

Lecture: 83


                                                Lecture 83
// While Loop
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
      int i;
      i=0;
      while(i<10)
      {
          cout<<i;    
          i++;
      }   
  getch();
  return 0;
}

Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10