Added exercise 3.44
[C-Deitel-Exercises.git] / Chapter-2 / 2-25.c
blob57c248f384d56ef9cf1e95459c21bff41c7f4d6f
1 /*C How to Program, 6/E, Deitel & Deitel.
3 Solution of exercise 2.25:
4 Print your initials in block letters down the page. Construct each block
5 letter out of the letter it represents as shown below.
7 PPPPPPPPP
8 P P
9 P P
10 P P
11 P P
17 JJJJJJJ
19 DDDDDDDDD
20 D D
21 D D
22 D D
23 DDDDD
25 Written by Juan Carlos Moreno (jcmhsoftware@gmail.com), year 2018.*/
27 #include<stdio.h>
29 int main()
31 printf("PPPPPPPPP\n");
32 printf(" P P\n");
33 printf(" P P\n");
34 printf(" P P\n");
35 printf(" P P\n");
37 printf("\n");
39 printf(" JJ\n");
40 printf(" J\n");
41 printf("J\n");
42 printf(" J\n");
43 printf(" JJJJJJJ\n");
45 printf("\n");
47 printf("DDDDDDDDD\n");
48 printf("D D\n");
49 printf("D D\n");
50 printf(" D D\n");
51 printf(" DDDDD\n");
53 return 0;