you can use gotoxy() function for reaching specific position on screen.
Also you can use 2D array to store results and finally print them.