Monday 16 July 2012

Lecture: 114


                                                Lecture 114

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

Code view in dev compiler:

Compile the program Ctrl+F9

      Run program Ctrl+F10