c program tables making

#include<stdio.h>
int main (){
int num;
printf("which table do you want \n>>");
scanf("%d",&num);
printf(" ===%d===\n",num);
for (int i =1;i<=10;i++){
printf("%d × %d = %d\n",num,i,num*i);
}
main();
}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function