Last active
December 22, 2015 02:08
-
-
Save kylelk/6400918 to your computer and use it in GitHub Desktop.
multiplication table in C
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
/* C program to find multiplication table up to 10. */ | |
#include <stdio.h> | |
int main() | |
{ | |
int n, i; | |
printf("Enter an integer to find multiplication table: "); | |
scanf("%d",&n); | |
for(i=1;i<=10;++i) | |
{ | |
printf("%d * %d = %d\n", n, i, n*i); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment