Nonoob is right about the '+' sign (Please refer to the pseudocode I quoted in my first post).
Also, you will have to play around with the coordinates considered to make sure you get it on the right length scales.
Although to be perfectly honest, I can't see the point of drawing this code in the console because you will lose all the fractal nature which makes it interesting. If you use the code given using the windows api you get something similar to the attached image. I admit the colour scheme leaves much to be desired, but you get the picture - No pun intended.
In the attached picture I used the transformation equations:
So like I said, you will have to play around with the numbers a bit to get it looking good.Code:x = 0.6*( (1.0*col/max_col) - 3.5 ); y = 0.4*( (1.0*row/max_row) - 3.5 );
Your code is quite confusing because you use while loops when a for loop would be much more suited to the task (and it would make the code easier to read).