+ 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); } } }

5th Sep 2020, 8:38 PM
Aidan
Aidan - avatar
3 Antworten
+ 4
It says rounded up to nearest whole number
5th Sep 2020, 8:49 PM
Abhay
Abhay - avatar
+ 2
oh thanks ill try that
5th Sep 2020, 10:13 PM
Aidan
Aidan - avatar
+ 1
ayy it worked thanks
5th Sep 2020, 10:22 PM
Aidan
Aidan - avatar