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
1 2 3 4 5 6 7 8 | 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
1 | listBox1.Items.Clear(); |