Wednesday 6 June 2012

Lecture: 89


                                                Lecture 89

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

Compile the program Ctrl+F9

      Run program Ctrl+F10