Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created August 18, 2019 14:04
Show Gist options
  • Save sjehutch/6199b3695d9bdbd91087aed1e16305be to your computer and use it in GitHub Desktop.
Save sjehutch/6199b3695d9bdbd91087aed1e16305be to your computer and use it in GitHub Desktop.
Hackrank for loop
using System;
namespace myBlank
{
class Program
{
private static object a;
static void Main(String[] args)
{
var n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i < 11; i++)
{
var output = i * n;
Console.WriteLine($"{n} x {i} = {output}");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment