Sunday, July 1, 2018

C program to display ASCII value of alphabet


WAP in C to print alphabets from A to Z

This program is made to display ASCII value of alphabets. The ASCII value of A-Z is 65-91.this program will all capital letter alphabet  with a time delay of 1 sec.
Here we use delay() to use time which is in dos.h header file  ,we have to enter time in millisecond because it takes time in millisecond...



#include
#include
#include
void main()
{
   clrscr();
   int ch=65;
   do
   {
   printf("%c\t",ch);
   ch++;
   delay(1000);
   }
   while(ch!=91);
getch();
}


The Output will be :-




No comments:

Post a Comment

IND vs AUS: Smith & Labuschagne Holds Fort As Fourth Test Ends Up In A Stalemate

  Beginning on 158 after Tea for the loss of two wickets for visiting Australian side with two stalwarts Steve Smith and   Marnus Labuschagn...