Skip to content

Instantly share code, notes, and snippets.

@OkenHaha
Created October 21, 2018 05:30
Show Gist options
  • Save OkenHaha/9309fc690f109e10b021753e6ba1eb16 to your computer and use it in GitHub Desktop.
Save OkenHaha/9309fc690f109e10b021753e6ba1eb16 to your computer and use it in GitHub Desktop.
Multiplication Table in C
#include<stdio.h>
#include<conio.h>
void main() {
int num,value,res,i;
clrscr();
printf("Enter a multiple: ");
scanf("%d",&num);
printf("Enter multiple upto times: ");
scanf("%d",&value);
printf("\n");
for(i=1;i<=value;i++) {
res=num*i;
printf("%d x %d = %d\n",num,value,res);
}
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment