Spocoman

02. Multiplication Table

Nov 21st, 2021 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace MultiplicationTable
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int x = 0;
  10.             int y = 0;
  11.            
  12.             for (x = 1; x <= 10; x++)
  13.             {
  14.                 for (y = 1; y <= 10; y++)
  15.                 {
  16.                     Console.WriteLine($"{x} * {y} = {x * y}");
  17.                 }
  18.             }
  19.         }
  20.     }
  21. }
  22.  
Add Comment
Please, Sign In to add comment