You cant just use gotoxy(num, anothernum); and increment or decrement them in the for(int i) loop??
What if gotoxy() isn't supported by the compiler?
deceptikon
Challenge Accepted
3,457 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57
do
#include <conio.h>
#include <windows.h>
The rest of the world may not use the same compiler and OS as you do. Both conio.h and windows.h are dependent on the implementation. Further, this problem can be solved without resorting to non-portable libraries. You don't have to call gotoxy() when it's a simple matter of printing a few space characters.
deceptikon
Challenge Accepted
3,457 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57