Skip to content

Instantly share code, notes, and snippets.

@btechmag
Last active April 15, 2021 11:18
Show Gist options
  • Save btechmag/d03a9be716189f17171a5a56d178005f to your computer and use it in GitHub Desktop.
Save btechmag/d03a9be716189f17171a5a56d178005f to your computer and use it in GitHub Desktop.
Simple C program to compute multiplication table for a given number
#include<stdio.h>
int main(int argc, char const *argv[])
{ /* sud1*/
int i,n;
n=9;
printf("\enter the num\n");
scanf("%d",&n);
for(i=1;i<=10;i++)
{
printf("\n%d*%d=%d",n,i,n*i);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment