Tuesday, 7 April 2015

C Program to print Multiplication table upto given number.

#include<stdio.h>
#include<conio.h>
main()
{
                int a,b=1;
                clrscr();
                printf("Enter the number whose multiplication table is to be displayed\n");
                scanf("%d",&a);
                while(b<=10)
                {
                                printf("%d * %d = %d\n",a,b,a*b);
                                b++;
                }
} 

No comments:

Post a Comment