In this tutorials will teach you how to make a times table in C#.net step by step. This step is very helpful for maths teachers.
Below Example Shows 2 times and 3 times tables enter the number on the text field click Add button Calculate and display the Tables.
Paste the code inside the Ok Button
int i = 1; int num = Int32.Parse(textBox1.Text); while (i <= 10) { listBox1.Items.Add(num + " x " + i + "=" + num * i); i++; }
Paste the code inside the Clear Button
listBox1.Items.Clear();