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

ASCII values from A-Z

ASCII value of A-Z range from 65 to 90

// 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=65; i<=90; i++)
    {
        ch = i; // puts integer value into char
        cout<<" Character "<<ch<<" ASCII Code "<<i;
        cout<<endl;
    }
    cin.get();
    return 0;
} // end of main   
ASII values of A-Z

           

3 comments:

  1. thhhannnxxx d program is cent per cent correct

    ReplyDelete
  2. y hv u used cin.get ? plz elaborate

    ReplyDelete

Comment Here....