Pages

Monday, January 2, 2012

C Programming to display multiplication table


/*to display the multiplication table*/
#include<stdio.h>
#include<stdlib.h>
int main( )
{
    int i,n;
    printf ("enter number: ");
    scanf ("%d",&n);
    for (i=1; i<=10; i++)
        printf ("\n%dx%d=%d",n,i,n*i);
    system ("pause");
    return 0;
}

No comments:

Post a Comment