My Project - Video Waker Alarm
Get Video alarm on Google Play

c code for multiplication table


c program to make multiplication table of any number. This c code for multiplication table, is one of the basic program which makes us to learn and implements loops.

c code for multiplication table

 

#include<stdio.h> 
#include<conio.h>

int main()
{
    int i, n, sum=0;
    char ch='y';
    printf("Enter the number for which you want multiplication table ");
    scanf("%d",&n);

    while(ch=='y')
    {
        for(i=1; i<=10; i++)
        {
            sum=sum+n;
            printf("\n%d * %d = %d\n",n,i,sum);
        }       
        printf("\ndo you want to continue making another multiplication table");
    ch=getch();
    }
getch();
}

Output :

c code for multiplication table
c code for multiplication table