Making tabels with arry in c

 #include<stdio.h>

int main()

{

   int mul[10],i,n;

   

   printf("Enter the number which table you want\n");

   scanf("%d", &n);

   

   for( i=0; i<10; i++){

    mul[i] = n*(i+1);

   }

   for( i=0; i<10; i++){

    printf("%d*%d=%d\n",n,i+1,mul[i]);

   }

return 0;

}

Comments

Popular posts from this blog

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c