dragonbs

Multiplication Table

Oct 23rd, 2022
56
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 _02.MultiplicationTable
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             for (int x = 1; x <= 10; x++)
  10.             {
  11.                 for (int y = 1; y <= 10; y++)
  12.                 {
  13.                     int product = x * y;
  14.                     Console.WriteLine($"{x} * {y} = {product}");
  15.                 }
  16.             }
  17.         }
  18.     }
  19. }
  20.  
Add Comment
Please, Sign In to add comment