/home/toolbox/public_html/solutions/6/619/z.c
1
2 #include <stdio.h>
3 #include <string.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <fcntl.h>
7 #include <stdint.h>
8 #include <math.h>
9 #include <stdlib.h>
10
11 #define TRUE (1 == 1)
12 #define FALSE (1 != 1)
13
14 #define DEBUG if (FALSE)
15
16 /*
17 * Author: Isaac Traxler
18 * Date: 2013-01-25
19 * Purpose: fun
20 * Problem: 619 - Numerically Speaking
21 */
22
23 /*
24 * This template reads data until a terminating value is reached.
25 */
26
27 #define BASE 26
28 #define BUCKETS 40
29 #define MAX_VALUE 999
30 #define NUM_DIGITS 3
31 #define MAX_BUFFER_LENGTH 40
32
33 /* global variables */
34
35 /* start code */
36 int main ()
37 {
38 /* main */
39 int i;
40 int j;
41 int k;
42
43 for (i=0; i<20; i++)
44 {
45 /* char count */
46 for (j=0; j<26; j++)
47 {
48 /* for each letter */
49 for (k=0; k<=i; k++)
50 {
51 /* for k */
52 printf("%c", 'a'+j);
53 } /* for k */
54 printf("\n");
55 } /* for each letter */
56 } /* char count */
57 printf("*\n");
58
59 return EXIT_SUCCESS;
60 } /* main */
61
62