Ascii value of [A to Z and a to z]

Algorithm

Output: ASCII value of [A to Z and a to z]
complexity:O(1)

ASCII( )
1  for i=65 to 90
2      print i and character value of  i 
3  for i=97 to 122
4      print i and character value of i
    

Algorithm Description

we have to print the character counterpart of the integer corresponding to the ASCII value. the program runs a loop for printing ASCII value of A to Z; for example character value of i=65 print A.
then it loops for printing Ascii value of a to z; for example character value of i=95 print a.

C Code

//Print the ASCII values of [A...Z] and [a....z]

#include< stdio.h>
#include< conio.h>
int main()
{
    int i;
    printf("ASCII values from A to Z are :\n");
    for(i=65;i <=90;i++)
    {
                       printf("%c=%d\n",i,i);
    }
    printf("\nASCII values from a to z are :\n");
    for(i=97;i <=122;i++)
    {
                       printf("%c=%d\n",i,i);            
    }
}