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