Search This Blog

Thursday, October 13, 2011

Write a program to display ASCII values of all lowercase letters

   1:  #include<stdio.h>
   2:  #include<conio.h>
   3:  void main()
   4:  {
   5:  int i;
   6:  pritf("Character ASCII NO\n");
   7:  pritf("--------  -------\n");
   8:  for(i=97;i<=122;i++)
   9:  printf("%c %3d",i,i);
  10:  getch();
  11:  }

No comments:

Post a Comment