Copyright © Programs ++
Design by Dzignine
Tuesday 24 January 2012

ASCII values from a-z

ASCII value of a-z range from 97 to 122


// Program to print the ASCII value for a-z characters
#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
    int x; // to store the ascii codes
    char ch; // to store the characters
    for (int i=97; i<=122; i++)
    {
        ch = i; // puts integer value into char
        cout<<" Character "<<ch<<" ASCII Code "<<i;
        cout<<endl;
    }
    cin.get();
    return 0;
} // end of main  
a-z ASCII values
 

0 comments:

Post a Comment

Comment Here....