// int main(){ // int a,b; // b=1; // printf("Enter the number a\n"); // scanf("%d",&a); // printf("a x b = %d \n",a*b); // return 0; // } int main() { int n, i; printf("Enter an integer: \n"); scanf("%d", &n); for (i = 1; i <= 10; ++i) { printf("%d x %d = %d \n", n, i, n * i); } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter