Skip to content

Instantly share code, notes, and snippets.

@kylelk
Last active December 22, 2015 02:08
Show Gist options
  • Save kylelk/6400918 to your computer and use it in GitHub Desktop.
Save kylelk/6400918 to your computer and use it in GitHub Desktop.
multiplication table in C
/* 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