Created
August 18, 2019 14:04
-
-
Save sjehutch/6199b3695d9bdbd91087aed1e16305be to your computer and use it in GitHub Desktop.
Hackrank for loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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