Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to multiply tables on runtime...

example- 2 * 1 =2

this type of table on runtime..



thanks
Posted
Updated 31-Jan-12 1:12am
v2
Comments
Dylan Morley 31-Jan-12 6:08am    
eh? tables as in the 2 times table?! :)
Nasir M@hmood 31-Jan-12 6:14am    
what you want to do clarify your question ?

Try:
C#
int table = 2;
for (int i = 0; i < 10; i++)
    {
    Console.WriteLine("{0} * {1} = {2}", i, table, i * table);
    }
 
Share this answer
 
Comments
StM0n 31-Jan-12 6:58am    
Satisfies the requirements...
You could use a DataGridView[^] and add some fancy intelligence to automate the answers, change from multiply to divide etc.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900