Write a program in C# Sharp to display the multiplication table vertically from 1 to n
using System; public class VerticalMultiplicationTable { public static void Main() { int n; Console.WriteLine("Enter a number: "); n = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("The multiplication table from 1 to {0} is:", n); for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { Console.Write("{0} * {1} = {2}\t", i, j, i * j); } Console.WriteLine(); } } }
Write a program in C# Sharp to display the multiplication table vertically from 1 to n
Reviewed by Bhaumik Patel
on
8:09 PM
Rating:
![Write a program in C# Sharp to display the multiplication table vertically from 1 to n](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwFFW4LkrcMdQ0c2-NfUDvg3yNFH44MnXNlTnLob_CuPfQimMdqZbUJPHcugqlF4-XpRyK6Q70sxhE5yCc7EEesZGkBwH9nwPbBoxiKkKn20snstYUEaufd-0ABG81eI2wAXQ2AEh87m2Po-0QEVEga-vmeSEcsvF1mMC1FEk4CuoxPtp4VUo-WI990TVw/s72-c/8.png)