alexsto

Nested Loops - Lab 02. Multiplication Table

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