Advertisement
Dianov

Nested Loops - Lab (02. Multiplication Table)

Dec 30th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace MultiplicationTable
  8.  
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             for (int a = 1; a <= 10; a++)
  15.             {
  16.                 for (int b = 1; b <= 10; b++)
  17.                 {
  18.                     Console.WriteLine($"{a} * {b} = {(a * b)}");
  19.                 }
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement