Write a program that displays your first initial as a capital letter using an 8x8 array of blocks C programming. (my initial SA,) you must use at least one other color than black and white for at least one of your letters. This other color can be used either for the foreground or the background so I have the code I just need help with the cordinates of pixels letter S and A (7,0) is top left also could you do them separately
Write a program that displays your first initial as a capital letter using an 8x8 array of blocks C
you must use at least one other color than black and white for at least one of your letters. This other color can be used either for the foreground or the background
so I have the code I just need help with the cordinates of pixels letter S and A (7,0) is top left also could you do them separately
Answer:
#include<stdio.h> #include<stdlib.h>
int main()
{ const char *chess[8][8];
//using 2 dimensional array chess[0][0] = "X";
chess[0][2] = "X";
chess[0][4] = "X";
//writing values step by step chess[0][6] = "X";
chess[1][1] = "X";
chess[1][3] = "X";
//same chess[1][5] = "X";
chess[1][7] = "X";
chess[2][0] = "X";
chess[2][2] = "X";
// same chess[2][4] = "X";
chess[2][6] = "X";
chess[3][1] = "X";
chess[3][3] = "X";
chess[3][5] = "X";
chess[3][7] = "X";
Step by step
Solved in 2 steps