Part of your problem is that you're printing the newline character after each character in the first loop but you want two characters on the same line. But just removing the newline character will not solve all your problems.

You really only want one loop. You want to print two characters. The first character you want to start at 'a' and then increase with each iteration. The second character starts at the last character and decrements with each iteration.

Do you know that each section of a for loop can contain multiple statements? This fact can be used to print the two characters in the same loop.

Part of your problem is that you're printing the newline character after each character in the first loop but you want two characters on the same line. But just removing the newline character will not solve all your problems.

You really only want one loop. You want to print two characters. The first character you want to start at 'a' and then increase with each iteration. The second character starts at the last character and decrements with each iteration.

Do you know that each section of a for loop can contain multiple statements? This fact can be used to print the two characters in the same loop.

Code:

int x, y;
for(x = 'a', y = 'e' ; x <= 'e'; x++, y--)
{

Jim

awesomeness level over 9000 XD so thats the trick there. didnt know that that is possible, thanks a million. :) any, other approach other than that? using more than one loop?