Advertisement
dmilicev

ascii by rows v1.c

Oct 18th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. /*
  2.     ascii by rows v1.c
  3.  
  4.     Prints ASCII characters in rows.
  5.  
  6.     ASCSII is American Standard Code for Information Interchange
  7.  
  8.     http://www.asciitable.com/
  9.  
  10.     https://theasciicode.com.ar/
  11.  
  12.     https://en.wikipedia.org/wiki/Box-drawing_character
  13.  
  14.  
  15.     You can find all my C programs at Dragan Milicev's pastebin:
  16.  
  17.     https://pastebin.com/u/dmilicev
  18.  
  19. */
  20.  
  21. #include <stdio.h>
  22.  
  23. int main(void)
  24. {
  25.     int row, column, character=32;
  26.  
  27.     printf("\n\t\t\t Ascii table by rows \n\n\n");
  28.  
  29.     for (row=1; row<=23; row++)
  30.     {
  31.         for (column=1; column<=10; column++)
  32.         {
  33.             if(character<=255)
  34.                 printf("%5d%2c", character, (char) character);
  35.  
  36.             character++;
  37.         }
  38.         printf("\n\n");
  39.     }
  40.  
  41.     printf("\n");
  42.  
  43.     //system("PAUSE");
  44.     getch();
  45.     return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement