Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Multiplication
Language: C/C++
Code:
#include <stdio.h>
#define MAX 100
void main()
{
     int n, prod;
     for(int i=0;i<=MAX;i++)
     {
          printf("\n Enter the number(press 0 to continue)");
          scanf("%d",&n);
          if(n==0)
          {
               printf("Process terminated");
               break;
          }
          for(j=1;j<=10;j++)
          {
               prod=n*j;
               printf("\n %d x %d = %d     ",n,j,prod);
          }
     }
}
Comments: