Skip to content

Instantly share code, notes, and snippets.

@wekonu
Created August 13, 2021 06:10
Show Gist options
  • Select an option

  • Save wekonu/04a0eefbc0b97a2bb02de2e37d77d525 to your computer and use it in GitHub Desktop.

Select an option

Save wekonu/04a0eefbc0b97a2bb02de2e37d77d525 to your computer and use it in GitHub Desktop.

Revisions

  1. wekonu created this gist Aug 13, 2021.
    31 changes: 31 additions & 0 deletions Loops.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.Collections;
    using System.ComponentModel;
    using System.Diagnostics.CodeAnalysis;
    using System.Globalization;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Runtime.Serialization;
    using System.Text.RegularExpressions;
    using System.Text;
    using System;



    class Solution
    {
    public static void Main(string[] args)
    {
    int n = Convert.ToInt32(Console.ReadLine().Trim());

    if (n < 2 || n > 20)
    return;

    for (int i = 1; i <= 10; i++)
    {
    Console.WriteLine(n + " x " + i + " = " + n*i);
    }
    }
    }