WELCOME TO MY BLOG BY SHABEEB.K

C,C++ PROGRAMMING: FIND A LETTER FROM ENGLISH ALPHABET

Search This Blog

Sunday, 8 September 2013

FIND A LETTER FROM ENGLISH ALPHABET


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str[50]="0ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int i;
clrscr();
printf("ENTER A NUMBER\n");
scanf("%d",&i);
printf("%dth character in list is %c",i,str[i]);
getch();
}






No comments:

Post a Comment