Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MultiplyTable
- {
- class Program
- {
- static void Main(string[] args)
- {
- string number = Console.ReadLine();
- for (int i = 1; i < number[2] - 47; i++)
- {
- for (int j = 1; j < number[1] - 47; j++)
- {
- for (int k = 1; k < number[0] - 47; k++)
- {
- Console.WriteLine($"{i} * {j} * {k} = {i * j * k};");
- }
- }
- }
- }
- }
- }
- ИЛИ:
- using System;
- namespace MultiplyTable
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- for (int i = 1; i <= (num % 10); i++)
- {
- for (int j = 1; j <= ((num / 10) % 10); j++)
- {
- for (int k = 1; k <= (num / 100); k++)
- {
- Console.WriteLine($"{i} * {j} * {k} = {i * j * k}");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement