Monday 7 May 2012

Lecture: 60


                                                Lecture 60

// Loop For
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
{  
    int n;
    char ch;
    cout<<"An ASCII Table Program: \n";
    for(n=1;n<256;n++)
    {
       ch=n;
       cout<<n<<" = "<<ch<<"\t\t";
    }
  getch();
  return 0;
}

Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10