I"m trying to have the output as discribed in my code however i seem to have the logic messed upP.s. if the color bothers you guys, i was just testing out the vb code, won't do it againCode:forget the fact that i haven't put it to uppercase yet, i'll do that later. The code seems to have the desired results in terms of the structure, but the characters are all wrong. Is there a math problem here? #include <stdio.h> int main(void){ /* output A BA CBA DCBA EDCBA */ /* output is structure i want but not letters */ int r,c; for(r = 0; r <= 5; r++){ for (c = 'a'; c<=('a' + r); c++){ printf("%c", r - c); /* this is correct algorithm for the structure */ } printf("\n"); } getchar(); return 0; }