Tuesday 8 May 2012

Lecture: 61


                                                Lecture 61

// Loop For
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
{  
    int n;
    cout<<"Two table\n";
    for(n=1;n<11;n++)
    {
      cout<<"\n2  X "<<n<<" = "<<2*n;
    }
  getch();
  return 0;
}

Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10