Skip to content

Instantly share code, notes, and snippets.

@wekonu
Created August 13, 2021 06:10
Show Gist options
  • Save wekonu/04a0eefbc0b97a2bb02de2e37d77d525 to your computer and use it in GitHub Desktop.
Save wekonu/04a0eefbc0b97a2bb02de2e37d77d525 to your computer and use it in GitHub Desktop.
HackerRank Day 5 - C# "Loops"
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);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment