/* * SelfTest1.3.c * Chapter 7 * John Stile * Purpose: Modify a previous program to produce the following output: * Aa * AaBb * AaBbCc * AaBbCcDd * AaBbCcDdEe * AaBbCcDdEeFf * AaBbCcDdEeFfGg * AaBbCcDdEeFfGgHh * AaBbCcDdEeFfGgHhIi * AaBbCcDdEeFfGgHhIiJj * AaBbCcDdEeFfGgHhIiJjKk * AaBbCcDdEeFfGgHhIiJjKkLl *AaBbCcDdEeFfGgHhIiJjKkLlMm * * I choose to modify forloop6.c */ #include // include functions in stdio.h when compiling #define NUM 13 // Set macro NUM to be replaced by 13 #define SPACES " " // Two spaces inside double quotes #define CHARS "!!" // Two exclamination points inside double quotes int main(void) { int ii,jj; for(ii=0; ii<= NUM; ii=(ii+1) ) // Loop through 13 letters of the aphabet { for(jj=NUM; jj>ii; jj=jj-1) // We want to create spaces // Each iteration adds one more space // stop when we reach 13 { printf("%s", SPACES); // print a space } for(jj=0; jj