Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace multiply_table
- {
- class Program
- {
- static void Main( )
- {
- string input = Console.ReadLine();
- // int Number = int.Parse(input);
- int FirstNum = Convert.ToInt32(input[2]);
- int SecondNum = Convert.ToInt32(input[1]);
- int ThirdNum = Convert.ToInt32(input[0]);
- for (int x=1; x <= FirstNum; x++)
- {
- for (int y = 1; y <= SecondNum; y++)
- {
- for (int z = 1; z <= ThirdNum; z++)
- {
- int calc = z * y * x;
- Console.WriteLine($"{z} * {y} * {x} = {calc};");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement