0

Paint costs (Code Coach problem)

let paint:String! = readLine() var paint2:Double! = Double(paint) var b:Double! = 5.00 * paint2 + 40.00 var c:Double! = b + 0.10 * b var d:Int! = Int(c) print(d) It gives the correct values, but optional, like Optional(55) instead of 55. Thanks <3 #lovesololearn

7th Feb 2021, 4:12 AM
Nguyễn Vĩnh HẢO
Nguyễn Vĩnh HẢO - avatar
9 ответов
+ 2
Please specify in which language you are writing this program
7th Feb 2021, 6:16 AM
Atul [Inactive]
+ 2
Hi sir my name is donta i want to become a application programmer can you give some tip that have to consider
9th Feb 2021, 1:58 PM
Aran Antoine
+ 1
Easy in Python print(round(1.1*(40 + 5 * int(input()))))
7th Feb 2021, 7:45 AM
David Ashton
David Ashton - avatar
+ 1
thanks Sir =)))
7th Feb 2021, 7:46 AM
Nguyễn Vĩnh HẢO
Nguyễn Vĩnh HẢO - avatar
+ 1
Thank you all =)), and happy New Year <3 from Vietnam
7th Feb 2021, 7:46 AM
Nguyễn Vĩnh HẢO
Nguyễn Vĩnh HẢO - avatar
0
ah Swift
7th Feb 2021, 7:26 AM
Nguyễn Vĩnh HẢO
Nguyễn Vĩnh HẢO - avatar
0
yeah I solved this problem man, many thanks though ^^ <3
7th Feb 2021, 7:29 AM
Nguyễn Vĩnh HẢO
Nguyễn Vĩnh HẢO - avatar
0
Aran Antoine hope this helps you
9th Feb 2021, 2:01 PM
Atul [Inactive]