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); } } } }
3 Respostas
+ 3
Alternatively if you want to leave them as int you could use
Console.WriteLine(Math.Round((paint*5+40)*1.1));
+ 1
Thanks maaaaaaaan