0

Correct mistake please. Paint Costs

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int paint; int tax; int money; paint= Convert.ToInt32 (Console.ReadLine()); tax= (40+ paint *5)/100*10; money = (40 + paint * 5 + tax); { Console.Write (money); } } } }

22nd Feb 2020, 11:00 PM
GAG98
GAG98 - avatar
2 Respuestas
+ 3
Alternatively if you want to leave them as int you could use Console.WriteLine(Math.Round((paint*5+40)*1.1));
22nd Feb 2020, 11:35 PM
Paul K Sadler
Paul K Sadler - avatar
+ 1
Thanks maaaaaaaan
22nd Feb 2020, 11:30 PM
GAG98
GAG98 - avatar