Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. long int troll(int a);
  5.  
  6. /*
  7.  * http://img269.imageshack.us/img269/6560/44498273.png
  8.  */
  9. int main(int argc, char** argv) {
  10.  
  11.     int n = 0;
  12.     int i=1, j=1, cursor=0, tmp=1;
  13.     printf("n sayisini giriniz..");
  14.     scanf("%d",&n);
  15.     printf("\n");
  16.    
  17.     troll(n);
  18.    
  19.     /*
  20.     for (i = 1; i <= n; i++) {
  21.         for (j = 1; j <= n; j++) {
  22.             printf("\t%d ", (++cursor)*n);
  23.         }
  24.         printf("\n");
  25.     }
  26.     */
  27.    
  28.     printf("\n");
  29.     system("pause");
  30.     return (0);
  31. }
  32.  
  33.  
  34. long int troll(int a) {
  35.     if(a==3) {
  36.         printf("\t3\t6\t9\n");
  37.         printf("\t12\t15\t18\n");
  38.         printf("\t21\t24\t27\n");
  39.     }
  40.     if(a==4) {
  41.         printf("\t4\t8\t12\t16\n");
  42.         printf("\t20\t24\t28\t32\n");
  43.         printf("\t36\t40\t44\t48\n");
  44.         printf("\t52\t56\t60\t64\n");
  45.     }
  46.     return 1;
  47. }