Професионална програма
Loading...
+ Нов въпрос
Axiomatik avatar Axiomatik 1243 Точки

Code was fine, you just overlooked to set priceWithoutTax with F2 => "All prices should be displayed to the second digit after the decimal point! The discount is applied only on the total price. Discount is only applicable to the final price!"

 Console.WriteLine($"Price without taxes: {priceWithoutTax}$");

change to :  

Console.WriteLine($"Price without taxes: {priceWithoutTax:F2}$");

Correct form:

                Console.WriteLine("Congratulations you've just bought a new computer!");
                Console.WriteLine($"Price without taxes: {priceWithoutTax:F2}$");
                Console.WriteLine($"Taxes: {sumTax:F2}$");
                Console.WriteLine("-----------");
                Console.WriteLine($"Total price: {totalPrice:F2}$");

 

2
razihanna avatar razihanna 7 Точки

Yes, Thank you verymuch , I missed to set it with F2.

Thank you again.

1
priyaanjalirai avatar priyaanjalirai -2 Точки

thetechmagazines.com Tech goliaths are investigating blockchain and Facebook won't be abandoned thetechiefinds.comThe organization has supposedly advanced one of its senior specialists, Evan Cheng, as the Overseer of Designing for its new blockchain division.

-2
24/01/2021 22:36:51
krum_43 avatar krum_43 567 Точки

Eто още едно подобно решение:

https://pastebin.com/suGKW8t3

0
razihanna avatar razihanna 7 Точки

Благодаря много!

0