c program for multiplication table using while loop


Example

#include<stdio.h>>
void main() 
{ 
    int a=1,b,c; 
    clrscr(); 
    printf("Enter Any Value : "); 
    scanf("%d",&b); 
    printf("Table of %d is : ",b);  
    while(a<=10) 
    { 
        c=b*a; 
        printf(" %d ",c);   
        a++; 
    } 
    getch(); 
}  
                                


Output

Enter Any Value : 10
Table of 10 is 10 20 30 40 50 60 70 80 90 100