diff --git a/22_Change/csharp/Program.cs b/22_Change/csharp/Program.cs
index 3b609d9d..b57e45e3 100644
--- a/22_Change/csharp/Program.cs
+++ b/22_Change/csharp/Program.cs
@@ -4,6 +4,9 @@ namespace Change
{
class Program
{
+ ///
+ /// Prints header.
+ ///
static void Header()
{
Console.WriteLine("Change".PadLeft(33));
@@ -17,6 +20,14 @@ namespace Change
Console.WriteLine();
}
+ ///
+ /// Gets user input for price and payment.
+ ///
+ ///
+ /// False if any input can't be parsed to double. Price and payment returned would be 0.
+ /// True if it was possible to parse inputs into doubles. Price and payment returned
+ /// would be as provided by the user.
+ ///
static (bool status, double price, double payment) GetInput()
{
Console.WriteLine("Cost of item? ");
@@ -38,6 +49,10 @@ namespace Change
return (true, price, payment);
}
+ ///
+ /// Prints bills and coins for given change.
+ ///
+ ///
static void PrintChange(double change)
{
var tens = (int)(change / 10);