How to print a double using Console.WriteLine in C#
stackoverflow.com › questions › 69341365Sep 27, 2021 · How to print a double using Console.WriteLine in C#. public class Account { private double balance; public Account (double initBalance) { balance = initBalance; this.balance = balance; } public double getBalance () { return balance; } public void deposit (double atm) { balance = atm + balance; } public void withdraw (double atm) { balance = balance - atm; } } } public class TestAccount { static void other () { Account objeto = new Account (50.0); objeto.getBalance ...