Advertisement
dmilicev

multiplication_table_v1.c

May 18th, 2020
149
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.     multiplication_table_v1.c
  4.  
  5.  
  6.     You can find all my C programs at Dragan Milicev's pastebin:
  7.  
  8.     https://pastebin.com/u/dmilicev
  9.  
  10. */
  11.  
  12. #include <stdio.h>
  13.  
  14. int main(void)
  15. {
  16.     int i,j;
  17.  
  18.     system("MODE CON: COLS=55 LINES=29");
  19.  
  20.     printf("\n  x  |\t  1    2    3    4    5    6    7    8    9 \n");
  21.     printf(" ___________________________________________________ \n\n");
  22.  
  23.     for ( i=1; i<=10; i++ )
  24.     {
  25.         printf(" %2d  |", i );
  26.  
  27.         for ( j=1; j<10; j++ )
  28.         {
  29.             printf("%5d", i*j );
  30.         }
  31.  
  32.         printf("\n     | \n");
  33.     }
  34.  
  35.     return 0;
  36.  
  37. } // main()
Advertisement
RAW Paste Data Copied
Advertisement