Kenthris

Untitled

Apr 28th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. //fix dimensions +2 to dimension + 3 for columns
  2.  
  3. for (i = 0; i < dimensions + 2 ; i++){
  4. if (i == 0){
  5. array[i][2] = '|';
  6. for (j = 3; j < dimensions + 3; j++){
  7. array[i][2] = j - 3 + 'a';
  8. }
  9. }
  10. if (i == 1){
  11. for (j = 0; j < dimensions + 3; j++){
  12. array[i][j] = '-';
  13. }
  14. }
  15. if ((i > 1) && i < 11){
  16. array[i][0] = i - 1 + '0';
  17. array[i][1] = ' ';
  18. array[i][2] = '|';
  19. for (j = 3; j < dimensions + 3; j++){
  20. array[i][j] = '.';
  21. }
  22. }
  23. else_if(i >= 11){
  24. array[i][0] = ((i -1) DIV 10) + '0';
  25. array[i][1] = ((i -1) MOD 10) + '0';
  26. array[i][2] = '|';
  27. for (j = 3; j < dimensions + 3; j++){
  28. array[i][j] = '.';
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment