52
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
var account = new Account()
8
{
9
Balance = 1,
10
Credits = 3,
11
Debits = 5,
12
Fees = 1
13
};
14
15
ReportLine("Debits", account.Debits);
16
ReportLine("Credits", account.Credits);
17
ReportLine("Fees", account.Fees);
18
PrintLine("", "---");
19
ReportLine("Balance", account.Balance);
20
}
21
22
static string FormatAmount(int value)
23
{
24
var result = value.ToString("D10");
Cached Result