In: Computer Science
for C program 10 by 10 char array. char 0-9 as rows and char a-j as collumns.
//C code
#include<stdio.h>
#include<conio.h>
int main()
{
char array[10][10];
//ASCII Value of 0
int asciiNum = 48;
//ASCII value of a
for (int i = 0; i < 10; i++)
{
array[i][0] = asciiNum;
int asciiLetter = 97;
for (int j = 0; j < 10;
j++)
{
if (i ==
9)
break;
array[j][i+1] =
asciiLetter;
asciiLetter++;
}
asciiNum++;
}
//print
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10;
j++)
{
printf("%c ",
array[i][j]);
}
printf("\n");
}
//pause
_getch();
return 0;
}
//Output
//If you need any help regarding this solution ......... please leave a comment ......... thanks