-
Notifications
You must be signed in to change notification settings - Fork 0
/
Name Game #1.c
74 lines (72 loc) · 3.26 KB
/
Name Game #1.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include <stdio.h>
#include <conio.h>
int main(){
char c[100];
int i;
printf("Enter your name:");
gets(c);
strupr(c);
printf("\n\n");
for (i=0;i<strlen(c);i++){
if (c[i] == 'A')
printf("..######..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n");
else if(c[i] == 'B')
printf("..######..\n..#....#..\n..#####...\n..#....#..\n..######..\n\n");
else if (c[i] == 'C')
printf("..######..\n..#.......\n..#.......\n..#.......\n..######..\n\n");
else if (c[i] == 'D')
printf("..#####...\n..#....#..\n..#....#..\n..#....#..\n..#####...\n\n");
else if (c[i] == 'E')
printf("..######..\n..#.......\n..#####...\n..#.......\n..######..\n\n");
else if (c[i] == 'F')
printf("..######..\n..#.......\n..#####...\n..#.......\n..#.......\n\n");
else if (c[i] == 'G')
printf("..######..\n..#.......\n..#####...\n..#....#..\n..#####...\n\n");
else if (c[i] == 'H')
printf("..#....#..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n");
else if (c[i] == 'I')
printf("..######..\n....##....\n....##....\n....##....\n..######..\n\n");
else if (c[i] == 'J')
printf("..######..\n....##....\n....##....\n..#.##....\n..####....\n\n");
else if (c[i] == 'K')
printf("..#...#...\n..#..#....\n..##......\n..#..#....\n..#...#...\n\n");
else if (c[i] == 'L')
printf("..#.......\n..#.......\n..#.......\n..#.......\n..######..\n\n");
else if (c[i] == 'M')
printf("..#....#..\n..##..##..\n..#.##.#..\n..#....#..\n..#....#..\n\n");
else if (c[i] == 'N')
printf("..#....#..\n..##...#..\n..#.#..#..\n..#..#.#..\n..#...##..\n\n");
else if (c[i] == 'O')
printf("..######..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n");
else if (c[i] == 'P')
printf("..######..\n..#....#..\n..######..\n..#.......\n..#.......\n\n");
else if (c[i] == 'Q')
printf("..######..\n..#....#..\n..#.#..#..\n..#..#.#..\n..######..\n\n");
else if (c[i] == 'R')
printf("..######..\n..#....#..\n..#.##...\n..#...#...\n..#....#..\n\n");
else if (c[i] == 'S')
printf("..######..\n..#.......\n..######..\n.......#..\n..######..\n\n");
else if (c[i] == 'T')
printf("..######..\n....##....\n....##....\n....##....\n....##....\n\n");
else if (c[i] == 'U')
printf("..#....#..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n");
else if (c[i] == 'V')
printf("..#....#..\n..#....#..\n..#....#..\n...#..#...\n....##....\n\n");
else if (c[i] == 'W')
printf("..#....#..\n..#....#..\n..#.##.#..\n..##..##..\n..#....#..\n\n");
else if (c[i] == 'X')
printf("..#....#..\n...#..#...\n....##....\n...#..#...\n..#....#..\n\n");
else if (c[i] == 'Y')
printf("..#....#..\n...#..#...\n....##....\n....##....\n....##....\n\n");
else if (c[i] == 'Z')
printf("..######..\n......#...\n.....#....\n....#.....\n..######..\n\n");
else if (c[i] == ' ')
printf("..........\n..........\n..........\n..........\n\n");
else if (c[i] == '.')
printf("----..----\n\n");
}
printf("\n\n\n\n______________________________________");
printf("\nIf you like it? Please hit one like!");
getch();
return 0;
}rf4