-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathProgram.cs
37 lines (34 loc) · 935 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GitHubTestProject
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello Github!");
Console.WriteLine("Please complete the following functions and initate a pull request.");
}
/// <summary>
/// Tests if a given number is a prime
/// </summary>
/// <param name="n"></param>
/// <returns></returns>
public static bool IsPrime(int n)
{
// TODO: Complete fhe funtion
return n % 2 != 0;
}
/// <summary>
/// Sorts a given integer array
/// </summary>
/// <param name="a">An integer array</param>
public static void Sort(int[] a)
{
// TODO: Complete fhe funtion
Array.Sort(a);
}
}
}