Print table
from 1 to 10 in C#
private static void
print1To10Table() { //
Print table form 1 to 10 for (int num1
= 1; num1 <= 10; num1++) { for (int num2
= 1; num2 <= 10; num2++) {
Console.Write(num1 * num2 + "\t"); }
Console.WriteLine(""); } } |
Output
EmoticonEmoticon