// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace M { public class Account { public double Balance { get; set; } public void Deposit(double m) { Balance += m; } public void Withdraw(double m) { Balance -= m; } } public class Program { public static void Main(string[] args) { Account acct = new Account(); for(int i = 0; i < 100000000; i++) { acct.Deposit(0.10); } acct.Withdraw(10000000.00); Console.WriteLine(acct.Balance.ToString("0.00")); } } }