answersLogoWhite

0

/******************************************

* C Program to print MultiplicationTable *

* Author of the Program: M.JAYAKUMAR..*

* Date 23 Nov 2006 *

* ***************************************/

#include<stdio.h>

main()

{

int i, p=1, table[10]; /* define integres and array */

/* ***************************

* Output Formating Begins

* ***************************/

for(i=0;i<61;i++)

printf("#");

printf("\n# Program to print Multiplication table of any number");

printf("\n# NOTE: To exit type 0 \n");

for(i=0;i<61;i++)

printf("#");

/* ***************************

* Output Formating ENDS

* ***************************/

while(p != 0)

{

printf("\nWhich table ");

scanf("%d",&p); /* takes input from input */

for(i=0;i<10;i++) /* Fills the array */

{

if(p==0) /* Stratagy to exit the program Benins */

{

printf("Exiting\n");

break;

} /* Stratagy to exit the program ends */

table[i]=i+1; /* Fills the array with numbers 1 - 10 */

printf("%2d x %2d = %2d\n", p, table[i], p * table[i]);

}

}

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write an Algorithm for multiplication table of an integer?

int firstNumber,secondNumber for(firstNumber = min; firstNumber &lt;= max; firstNumber++); { for(secondNumber = min; secondNumber &lt;=max; secondNumber++); int result firstNumber * secondNumber; }


How do you write program c of table 5?

#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i


What is associative property multiplication?

The associative power of multiplication states that for any three numbers a, b and c, (a * b) * c = a * (b * c) and so we can write either as a * b * c without ambiguity.


How do you write 100000 as roman number?

(C) or C but with an horizontal line above the numeral C to indicate multiplication by a thousand. Numerals in brackets also indicate multiplication by a thousand. So (C) = 100*1000 = 100000


Where can I find a multiplication table printable?

http://www.mathsisfun.com/multiplication-table-bw.html this is a printable multiplication table. Multiplication doesn't change no matter what grade so just leave the chart as is.


What is the definition of the associative property of multiplication?

The associative property of multiplication states that for any three numbers a, b and c, (a * b) * c = a * (b * c) and so we can write either as a * b * c without ambiguity. The associative property of multiplication means that you can change the grouping of the expression and still have the same product.


Can you show a multiplication table?

table of 9


Write the square numbers between 1 and 40 describe the pattern the square numbers make on the multiplication table?

1,4,9,25,36


What is another way of writing a x 2 1 c?

If the "x" is a multiplication sign, you can simply write the numbers first, and omit the multiplication sign: 21ac.


What is the multiplication property of multiplication?

a*(b + c) = a*b + a*c


What is the multiplication table?

This link gives you an excellent multiplication table and some tips.Please see related link below.


How do you write multiplication table program in php?

// example of 1..12x12 table for($i = 1; $i &lt;= 12; $i++) { for($j = 1; $j &lt;= 12; $j++) { print ($i * $j) ." "; } print "\n"; }