Boiko
Member
Hi guys,
Just reading a book for beginners about c# and just missed something here..
why do we need that 1 +?
Thanks,
Tomas
Just reading a book for beginners about c# and just missed something here..
C#:
// Inputs
Console.Write("Enter customer price of a product: ");
string inputPrice = Console.ReadLine();
double customerPrice = Convert.ToDouble(inputPrice);
Console.Write("Enter VAT rate in %: ");
string inputVatRate = Console.ReadLine();
double vatRate = Convert.ToDouble(inputVatRate);
// Calculations
double divisor = [B]1[/B] + vatRate / 100.0;
Thanks,
Tomas