Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _06.MultiplyTable
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- char[] revNum = num.ToString().ToCharArray();
- Array.Reverse(revNum);
- int fL = (int)char.GetNumericValue(revNum[0]);
- int sL = (int)char.GetNumericValue(revNum[1]);
- int tL = (int)char.GetNumericValue(revNum[2]);
- //Console.WriteLine(f);
- for (int f = 1; f <= fL; f ++) {
- for (int s = 1; s <= sL; s++)
- {
- for (int t = 1; t <= tL; t++)
- {
- Console.WriteLine($"{f} * {s} * {t} = {f*s*t};");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement