Advertisement
Guest User

table matrix

a guest
Mar 4th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. int[] tableArray = {1,2,3,4,5,6,7,8,9,10};
  2.  
  3. foreach (var table in tableArray)
  4. {
  5.     foreach (var number in tableArray)
  6.     {
  7.         var value = number * table;
  8.         Console.Write($"{value.ToString("00")} ");
  9.     }
  10.     Console.WriteLine();
  11. }
  12.  
  13. Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement