answersLogoWhite

0

Um, not sure how to do that, but you can create a sort of "table" in C++ by using multidimensional arrays. Below is an example of how to create a two-dimensional array:

int myArray[10] [10];

You can add more dimensions to the array in order to increase its storage capacity.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

Multiplication table using do while loop?

#include void main() { int i=2,m,n; printf("enter number"); scanf("%d",&n); do { m=i*n; printf("%d*%d=%d\n",n,i,m); i=i+1; } while (i<=10); }


How do you make a program in python using do while loop to display the multiplication table of number from one to ten?

a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910


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(); }


How to write C multiplication table?

/****************************************** * C Program to print MultiplicationTable * * Author of the Program: M.JAYAKUMAR..* * Date 23 Nov 2006 * * ***************************************/ #include&lt;stdio.h&gt; main() { int i, p=1, table[10]; /* define integres and array */ /* *************************** * Output Formating Begins * ***************************/ for(i=0;i&lt;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&lt;61;i++) printf("#"); /* *************************** * Output Formating ENDS * ***************************/ while(p != 0) { printf("\nWhich table "); scanf("%d",&amp;p); /* takes input from input */ for(i=0;i&lt;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]); } } }


Write a program of using recursion to create a table of any number?

/*mycfiles.wordpress.com Program to prepare Table of any no. using while loop*/ #include #include void main() { int n,t,count=1; clrscr(); printf("Enter any number\n\n"); scanf("%d",&amp;n); while(count&lt;=10) { t=n*count; printf("\n%d*%d=%d",n,count,t); count++; } getch(); }

Related Questions

Multiplication table using do while loop?

#include void main() { int i=2,m,n; printf("enter number"); scanf("%d",&amp;n); do { m=i*n; printf("%d*%d=%d\n",n,i,m); i=i+1; } while (i&lt;=10); }


What is the difference between finding the dot product and using scalar multiplication?

They give us different results. The dot product produces a number, while the scalar multiplication produces a vector.


Why do table tennis players touch the table during a match?

Table tennis players touch the table during a match to maintain balance and stability while making quick movements and shots.


Why is it important to be careful while using or making a graph?

It is important to be careful while using or making anything! Particularly if you don't want to make mistakes or make a mess.


How do you get the total of 22 with using the numbers 3 4 5 6 while using multiplication addition and division?

4*5 + 6/3 = 20 + 2 = 22


How can models be used to solve multiplication problems?

Models can be used to solve multiplication problems by visually representing the quantities involved, making it easier to understand the operation. For instance, arrays and area models can show how two numbers combine to form a larger total, while number lines can illustrate the concept of repeated addition. Using manipulatives like counters or blocks can also help students grasp multiplication by physically grouping items. These visual and tactile approaches enhance comprehension and retention of multiplication concepts.


Who invented the multiplication tabels?

While the multiplication tables are sometimes attributed to Pythagoras the oldest known multiplication tables were used by the Babylonians about 4000 years ago. These used a base of 60. The oldest known tables using a base of 10 are the Chinese decimal multiplication tables on bamboo strips dating to about 305 BC, during China's Warring States period.


How do you get 3 while only using four 4s and the addition subtraction division and multiplication symbol once?

((4*4)-4)/+4 = 3


When do cells use chromosomes?

While multiplication


C program that prints out multiplication table of any given numbers?

/*mycfiles.wordpress.com Program to prepare Table of any no. using while loop*/ #include #include void main() { int n,t,count=1; clrscr(); printf("Enter any number\n\n"); scanf("%d",&amp;n); while(count&lt;=10) { t=n*count; printf("\n%d*%d=%d",n,count,t); count++; } getch(); }


Can you touch the table while playing table tennis?

No, you cannot touch the table while playing table tennis.


How do you make a program in python using do while loop to display the multiplication table of number from one to ten?

a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910