Last active
January 7, 2019 12:03
-
-
Save leovarmak/2625987a4d2898b23d464e6482471ab4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
int j,i,n; | |
printf("Input upto the table number starting from 1 : "); | |
scanf("%d",&n); | |
printf("Multiplication table from 1 to %d \n",n); | |
for(i=1;i<=10;i++) | |
{ | |
for(j=1;j<=n;j++) | |
{ | |
if (j<=n-1) { | |
printf("%dx%d = %d, ",j,i,i*j); | |
printf("\t"); | |
} else { | |
printf("%dx%d = %d",j,i,i*j); | |
} | |
} | |
printf("\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment