Wednesday 4 January 2012

Multiplication Program

#include <stdio.h>
int main()
{
      int num, i = 1;
      printf("\n Enter any Number:");
      scanf("%d", &num);
      printf("Multiplication table of %d: \n", num);
      while (i <= 10)
     {
            printf("\n %d x %d = %d", num, i, num * i);
            i++;
      }
      return 0;
}

No comments:

Post a Comment

host gator coupon