answersLogoWhite

0

How to write C multiplication table?

Updated: 10/27/2022
User Avatar

Wiki User

15y ago

Best Answer

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

* 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

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to write C multiplication table?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


Write a c program to print multiplication table using while loop?

void main() { int a,b,c,d; clrscr(); printf("\n Enter the number for table = "); scanf("%d",&amp;a); printf("\n Enter the number up to which you want to see the table = "); scanf("%d",&amp;b); for(c=1;c&lt;=b;c++) { d=a*c; printf("%d * %d = %d\n", a,c,d); } getch(); }


What is the multiplication table?

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