Tuesday, October 11, 2011

Multiplication Table Using C


#include <stdio.h>
#include <conio.h>
 void main()
{
   Int i,n,num;
  clrscr();
  printf(“Enter the number to print multiplication table :”);
  scanf(“%d”,&num);
  printf(“how many terms :”);
  scanf(“%d”,&n);
  clrscr();
  printf(“======MULTIPLICATION TABLE=======\n             ”);
  for(i=1;i<=n;i++);
  printf(“%d*%d=%3d”,i,num,i*num);
  getch();
}

0 comments:

Post a Comment