Multiplication Table(Do–While Loop)

 #include<stdio.h>

int main()

{

    int n,i=1;


    printf("Enter number: ");

    scanf("%d",&n);


    do

    {

        printf("%d x %d = %d\n",n,i,n*i);

        i++;

    }while(i<=10);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices