+ 1
Paint Costs
This works for test 1, 2, and 5 Why not other times? ------------------------------------------- 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) { double colors = Convert.ToInt32(Console.ReadLine()); double cost = colors * 5 + 40; double tax = (cost / 100) * 10; double totalCost = cost + tax; Console.Write(totalCost); } } }
3 Antworten
+ 4
It says rounded up to nearest whole number
+ 2
oh thanks ill try that
+ 1
ayy it worked thanks