I'm trying to plot points on a graph given the X and Y coordinates of a single point. X and Y will both be integers between 1 and 9 (inclusive). And the graph should have each axis of size 9. I'm trying to do this using ASC11 characters, and i'm using the constants: width (X axis size) and height (Y axis size):
defineWIDTH9
defineHEIGHT9
I'm trying to get the graph to look like a 9x9 grid and it asks the user for input on which block they would like to plot a x on. So if they put 3,4 it would go 3 over (X) and 4 up (Y). How would I plot something like that using for loops and if statements?
Aucun commentaire:
Enregistrer un commentaire