Advertisement
Stan0033

Untitled

Apr 17th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. using System;
  2.  
  3. namespace multiply_table
  4. {
  5. class Program
  6. {
  7. static void Main( )
  8. {
  9. string input = Console.ReadLine();
  10.  
  11. // int Number = int.Parse(input);
  12.  
  13. int FirstNum = Convert.ToInt32(input[2]);
  14. int SecondNum = Convert.ToInt32(input[1]);
  15. int ThirdNum = Convert.ToInt32(input[0]);
  16.  
  17. for (int x=1; x <= FirstNum; x++)
  18. {
  19. for (int y = 1; y <= SecondNum; y++)
  20. {
  21. for (int z = 1; z <= ThirdNum; z++)
  22. {
  23. int calc = z * y * x;
  24. Console.WriteLine($"{z} * {y} * {x} = {calc};");
  25. }
  26. }
  27. }
  28. }
  29. }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement