Introduction
This article explains how to print all the letters A-Z using a single A-Z. The simplest concept for printing these is to create a 6 X 6 matrix on the paper and draw stars (*) where you want.
For example to print A:
  1. Create one 6X6 matrix on paper and draw stars (*) to make an A.

    matrix

  2. Now write the row numbers and column numbers on this:

    row number and column number
  3. Now make your condition and decide where we want the stars (*) and where we want spaces.

    condition



  4. By using the above 2 conditions create a single condition as below:

     2 condition

  5. So to design "A" we need to write the code as follows:
    1. static void A()
    2. {
    3. for (Row = 0; Row < 7; Row++)
    4. {
    5. for (Col = 0; Col < 7; Col++)
    6. {
    7. if (((Col == 1 || Col == 5) && Row != 0) || ((Row == 0 || Row == 3) && (Col > 1 && Col < 5)))
    8. Console.Write("*");
    9. else
    10. Console.Write(" ");
    11. }
    12. Console.WriteLine();
    13. }
    14. }
In the same manner as for the letter A, the letters B - Z can be designed like this:

Code for all letters (A - Z):
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace AtoZ
  7. {
  8. class Program
  9. {
  10. static int Row, Col;
  11. static void Main(string[] args)
  12. {
  13. char choice;
  14. Console.WriteLine("Please Enter Any one Alphabate Which you want to print");
  15. choice = char.Parse(Console.ReadLine());
  16. switch (choice)
  17. {
  18. case 'a':
  19. case 'A':
  20. A();
  21. break;
  22. case 'b':
  23. case 'B':
  24. B();
  25. break;
  26. case 'c':
  27. case 'C':
  28. C();
  29. break;
  30. case 'd':
  31. case 'D':
  32. D();
  33. break;
  34. case 'e':
  35. case 'E':
  36. E();
  37. break;
  38. case 'f':
  39. case 'F':
  40. F();
  41. break;
  42. case 'g':
  43. case 'G':
  44. G();
  45. break;
  46. case 'h':
  47. case 'H':
  48. H();
  49. break;
  50. case 'i':
  51. case 'I':
  52. I();
  53. break;
  54. case 'j':
  55. case 'J':
  56. J();
  57. break;
  58. case 'k':
  59. case 'K':
  60. K();
  61. break;
  62. case 'l':
  63. case 'L':
  64. L();
  65. break;
  66. case 'm':
  67. case 'M':
  68. M();
  69. break;
  70. case 'n':
  71. case 'N':
  72. N();
  73. break;
  74. case 'o':
  75. case 'O':
  76. O();
  77. break;
  78. case 'p':
  79. case 'P':
  80. P();
  81. break;
  82. case 'q':
  83. case 'Q':
  84. Q();
  85. break;
  86. case 'r':
  87. case 'R':
  88. R();
  89. break;
  90. case 's':
  91. case 'S':
  92. S();
  93. break;
  94. case 't':
  95. case 'T':
  96. T();
  97. break;
  98. case 'u':
  99. case 'U':
  100. U();
  101. break;
  102. case 'v':
  103. case 'V':
  104. V();
  105. break;
  106. case 'w':
  107. case 'W':
  108. W();
  109. break;
  110. case 'x':
  111. case 'X':
  112. X();
  113. break;
  114. case 'y':
  115. case 'Y':
  116. Y();
  117. break;
  118. case 'z':
  119. case 'Z':
  120. Z();
  121. break;
  122. }
  123. }
  124. static void A()
  125. {
  126. for (Row = 0; Row < 7; Row++)
  127. {
  128. for (Col = 0; Col < 7; Col++)
  129. {
  130. if (((Col == 1 || Col == 5) && Row != 0) || ((Row == 0 || Row == 3) && (Col > 1 && Col < 5)))
  131. Console.Write("*");
  132. else
  133. Console.Write(" ");
  134. }
  135. Console.WriteLine();
  136. }
  137. }
  138. static void B()
  139. {
  140. for (Row = 0; Row < 7; Row++)
  141. {
  142. for (Col = 0; Col < 7; Col++)
  143. {
  144. if (Col == 1 || ((Row == 0 || Row == 3 || Row == 6) && (Col < 5 && Col > 1)) || (Col == 5 && (Row != 0 && Row != 3 && Row != 6)))
  145. Console.Write("*");
  146. else
  147. Console.Write(" ");
  148. }
  149. Console.WriteLine();
  150. }
  151. }
  152. static void C()
  153. {
  154. for (Row = 0; Row < 7; Row++)
  155. {
  156. for (Col = 0; Col < 7; Col++)
  157. {
  158. if ((Col == 1 && (Row != 0 && Row != 6)) || ((Row == 0 || Row == 6) && (Col > 1 && Col < 5)) || (Col == 5 && (Row == 1 || Row == 5)))
  159. Console.Write("*");
  160. else
  161. Console.Write(" ");
  162. }
  163. Console.WriteLine();
  164. }
  165. }
  166. static void D()
  167. {
  168. for (Row = 0; Row < 7; Row++)
  169. {
  170. for (Col = 0; Col < 7; Col++)
  171. {
  172. if (Col == 1 || ((Row == 0 || Row == 6) && (Col > 1 && Col < 5)) || (Col == 5 && Row != 0 && Row != 6))
  173. Console.Write("*");
  174. else
  175. Console.Write(" ");
  176. }
  177. Console.WriteLine();
  178. }
  179. }
  180. static void E()
  181. {
  182. for (Row = 0; Row < 7; Row++)
  183. {
  184. for (Col = 0; Col < 7; Col++)
  185. {
  186. if (Col == 1 || ((Row == 0 || Row == 6) && (Col > 1 && Col < 6)) || (Row == 3 && Col > 1 && Col < 5))
  187. Console.Write("*");
  188. else
  189. Console.Write(" ");
  190. }
  191. Console.WriteLine();
  192. }
  193. }
  194. static void F()
  195. {
  196. for (Row = 0; Row < 7; Row++)
  197. {
  198. for (Col = 0; Col < 7; Col++)
  199. {
  200. if (Col == 1 || (Row == 0 && Col > 1 && Col < 6) || (Row == 3 && Col > 1 && Col < 5))
  201. Console.Write("*");
  202. else
  203. Console.Write(" ");
  204. }
  205. Console.WriteLine();
  206. }
  207. }
  208. static void G()
  209. {
  210. for (Row = 0; Row < 7; Row++)
  211. {
  212. for (Col = 0; Col < 7; Col++)
  213. {
  214. if ((Col == 1 && Row != 0 && Row != 6) || ((Row == 0 || Row == 6) && Col > 1 && Col < 5) || (Row == 3 && Col > 2 && Col < 6) || (Col == 5 && Row != 0 && Row != 2 && Row != 6))
  215. Console.Write("*");
  216. else
  217. Console.Write(" ");
  218. }
  219. Console.WriteLine();
  220. }
  221. }
  222. static void H()
  223. {
  224. for (Row = 0; Row < 7; Row++)
  225. {
  226. for (Col = 0; Col < 7; Col++)
  227. {
  228. if ((Col == 1 || Col == 5) || (Row == 3 && Col > 1 && Col < 6))
  229. Console.Write("*");
  230. else
  231. Console.Write(" ");
  232. }
  233. Console.WriteLine();
  234. }
  235. }
  236. static void I()
  237. {
  238. for (Row = 0; Row < 7; Row++)
  239. {
  240. for (Col = 0; Col < 7; Col++)
  241. {
  242. if (Col == 3 || (Row == 0 && Col > 0 && Col < 6) || (Row == 6 && Col > 0 && Col < 6))
  243. Console.Write("*");
  244. else
  245. Console.Write(" ");
  246. }
  247. Console.WriteLine();
  248. }
  249. }
  250. static void J()
  251. {
  252. for (Row = 0; Row < 7; Row++)
  253. {
  254. for (Col = 0; Col < 7; Col++)
  255. {
  256. if ((Col == 4 && Row != 6) || (Row == 0 && Col > 2 && Col < 6) || (Row == 6 && Col == 3) || (Row == 5 && Col == 2))
  257. Console.Write("*");
  258. else
  259. Console.Write(" ");
  260. }
  261. Console.WriteLine();
  262. }
  263. }
  264. static void K()
  265. {
  266. int i, j;
  267. j = 5;
  268. i = 0;
  269. for (Row = 0; Row < 7; Row++)
  270. {
  271. for (Col = 0; Col < 7; Col++)
  272. {
  273. if (Col == 1 || ((Row == Col + 1) && Col != 0))
  274. {
  275. Console.Write("*");
  276. }
  277. else if (Row == i && Col == j)
  278. {
  279. Console.Write("*");
  280. i++;
  281. j--;
  282. }
  283. else
  284. Console.Write(" ");
  285. }
  286. Console.WriteLine();
  287. }
  288. }
  289. static void L()
  290. {
  291. for (Row = 0; Row < 7; Row++)
  292. {
  293. for (Col = 0; Col < 7; Col++)
  294. {
  295. if (Col == 1 || (Row == 6 && Col != 0 && Col < 6))
  296. Console.Write("*");
  297. else
  298. Console.Write(" ");
  299. }
  300. Console.WriteLine();
  301. }
  302. }
  303. static void M()
  304. {
  305. for (Row = 0; Row < 7; Row++)
  306. {
  307. for (Col = 0; Col < 7; Col++)
  308. {
  309. if (Col == 1 || Col == 5 || (Row == 2 && (Col == 2 || Col == 4)) || (Row == 3 && Col == 3))
  310. Console.Write("*");
  311. else
  312. Console.Write(" ");
  313. }
  314. Console.WriteLine();
  315. }
  316. }
  317. static void N()
  318. {
  319. for (Row = 0; Row < 7; Row++)
  320. {
  321. for (Col = 0; Col < 7; Col++)
  322. {
  323. if (Col == 1 || Col == 5 || (Row == Col && Col != 0 && Col != 6))
  324. Console.Write("*");
  325. else
  326. Console.Write(" ");
  327. }
  328. Console.WriteLine();
  329. }
  330. }
  331. static void O()
  332. {
  333. for (Row = 0; Row < 7; Row++)
  334. {
  335. for (Col = 0; Col < 7; Col++)
  336. {
  337. if (((Col == 1 || Col == 5) && Row != 0 && Row != 6) || ((Row == 0 || Row == 6) && Col > 1 && Col < 5))
  338. Console.Write("*");
  339. else
  340. Console.Write(" ");
  341. }
  342. Console.WriteLine();
  343. }
  344. }
  345. static void P()
  346. {
  347. for (Row = 0; Row < 7; Row++)
  348. {
  349. for (Col = 0; Col < 7; Col++)
  350. {
  351. if (Col == 1 || ((Row == 0 || Row == 3) && Col > 0 && Col < 5) || ((Col == 5 || Col == 1) && (Row == 1 || Row == 2)))
  352. Console.Write("*");
  353. else
  354. Console.Write(" ");
  355. }
  356. Console.WriteLine();
  357. }
  358. }
  359. static void Q()
  360. {
  361. for (Row = 0; Row < 7; Row++)
  362. {
  363. for (Col = 0; Col < 7; Col++)
  364. {
  365. if ((Col == 1 && Row != 0 && Row != 6) || (Row == 0 && Col > 1 && Col < 5) || (Col == 5 && Row != 0 && Row != 5) || (Row == 6 && Col > 1 && Col < 4) || (Col == Row - 1 && Row > 3))
  366. Console.Write("*");
  367. else
  368. Console.Write(" ");
  369. }
  370. Console.WriteLine();
  371. }
  372. }
  373. static void R()
  374. {
  375. for (Row = 0; Row < 7; Row++)
  376. {
  377. for (Col = 0; Col < 7; Col++)
  378. {
  379. if (Col == 1 || ((Row == 0 || Row == 3) && Col > 1 && Col < 5) || (Col == 5 && Row != 0 && Row < 3) || (Col == Row - 1 && Row > 2))
  380. Console.Write("*");
  381. else
  382. Console.Write(" ");
  383. }
  384. Console.WriteLine();
  385. }
  386. }
  387. static void S()
  388. {
  389. for (Row = 0; Row < 7; Row++)
  390. {
  391. for (Col = 0; Col < 7; Col++)
  392. {
  393. if (((Row == 0 || Row == 3 || Row == 6) && Col > 1 && Col < 5) || (Col == 1 && (Row == 1 || Row == 2 || Row == 6)) || (Col == 5 && (Row == 0 || Row == 4 || Row == 5)))
  394. Console.Write("*");
  395. else
  396. Console.Write(" ");
  397. }
  398. Console.WriteLine();
  399. }
  400. }
  401. static void T()
  402. {
  403. for (Row = 0; Row < 7; Row++)
  404. {
  405. for (Col = 0; Col < 7; Col++)
  406. {
  407. if (Col == 3 || (Row == 0 && Col > 0 && Col < 6))
  408. Console.Write("*");
  409. else
  410. Console.Write(" ");
  411. }
  412. Console.WriteLine();
  413. }
  414. }
  415. static void U()
  416. {
  417. for (Row = 0; Row < 7; Row++)
  418. {
  419. for (Col = 0; Col < 7; Col++)
  420. {
  421. if (((Col == 1 || Col == 5) && Row != 6) || (Row == 6 && Col > 1 && Col < 5))
  422. Console.Write("*");
  423. else
  424. Console.Write(" ");
  425. }
  426. Console.WriteLine();
  427. }
  428. }
  429. static void V()
  430. {
  431. for (Row = 0; Row < 7; Row++)
  432. {
  433. for (Col = 0; Col < 7; Col++)
  434. {
  435. if (((Col == 1 || Col == 5) && Row < 5) || (Row == 6 && Col == 3) || (Row == 5 && (Col == 2 || Col == 4)))
  436. Console.Write("*");
  437. else
  438. Console.Write(" ");
  439. }
  440. Console.WriteLine();
  441. }
  442. }
  443. static void W()
  444. {
  445. for (Row = 0; Row < 7; Row++)
  446. {
  447. for (Col = 0; Col < 7; Col++)
  448. {
  449. if (((Col == 1 || Col == 5) && Row < 6) || ((Row == 5 || Row == 4) && Col == 3) || (Row == 6 && (Col == 2 || Col == 4)))
  450. Console.Write("*");
  451. else
  452. Console.Write(" ");
  453. }
  454. Console.WriteLine();
  455. }
  456. }
  457. static void X()
  458. {
  459. for (Row = 0; Row < 7; Row++)
  460. {
  461. for (Col = 0; Col < 7; Col++)
  462. {
  463. if (((Col == 1 || Col == 5) && (Row > 4 || Row < 2)) || Row == Col && Col > 0 && Col < 6 || (Col == 2 && Row == 4) || (Col == 4 && Row == 2))
  464. Console.Write("*");
  465. else
  466. Console.Write(" ");
  467. }
  468. Console.WriteLine();
  469. }
  470. }
  471. static void Y()
  472. {
  473. for (Row = 0; Row < 7; Row++)
  474. {
  475. for (Col = 0; Col < 7; Col++)
  476. {
  477. if (((Col == 1 || Col == 5) && Row < 2) || Row == Col && Col > 0 && Col < 4 || (Col == 4 && Row == 2) || ((Col == 3) && Row > 3))
  478. Console.Write("*");
  479. else
  480. Console.Write(" ");
  481. }
  482. Console.WriteLine();
  483. }
  484. }
  485. static void Z()
  486. {
  487. for (Row = 0; Row < 7; Row++)
  488. {
  489. for (Col = 0; Col < 7; Col++)
  490. {
  491. if (((Row == 0 || Row == 6) && Col >= 0 && Col <= 6)||Row+Col==6)
  492. Console.Write("*");
  493. else
  494. Console.Write(" ");
  495. }
  496. Console.WriteLine();
  497. }
  498. }
  499. }
  500. }