Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Multiply_Table
- {
- class Program
- {
- static void Main()
- {
- string incomingNumber = Console.ReadLine();
- int firstDigit = Math.Abs(int.Parse(incomingNumber[0].ToString()));
- int secondDigit = Math.Abs(int.Parse(incomingNumber[1].ToString()));
- int thirdDigit = Math.Abs(int.Parse(incomingNumber[2].ToString()));
- for (int i = 1; i <= thirdDigit; i++)
- {
- for (int j = 1; j <= secondDigit; j++)
- {
- for (int k = 1; k <= firstDigit; k++)
- {
- Console.WriteLine($"{i} * {j} * {k} = {i * j * k};");
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment