Skip to content

C-Program 19

WRITE A PROGRAM to Generate Multiplication Table Using while loop

#include <stdio.h>
int main()
{
   int n, i;
 
    printf("Enter a Number ");
    scanf("%d",&n);
    i=1;
    while(i<=10){
                
        printf("%d * %d = %d \n", n, i, n*i);
        ++i;
    }
     
    getch();
    
}

Output