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
9 Antworten
+ 2
Please specify in which language you are writing this program
+ 2
Hi sir my name is donta i want to become a application programmer can you give some tip that have to consider
+ 1
Easy in Python
print(round(1.1*(40 + 5 * int(input()))))
+ 1
thanks Sir =)))
+ 1
Thank you all =)), and happy New Year <3 from Vietnam
0
ah Swift
0
yeah I solved this problem man, many thanks though ^^ <3
0
https://www.sololearn.com/discuss/1548326/?ref=app
https://www.sololearn.com/discuss/1886509/?ref=app
https://www.sololearn.com/discuss/1301376/?ref=app
https://www.sololearn.com/discuss/1182529/?ref=app
https://www.sololearn.com/discuss/805256/?ref=app
https://www.sololearn.com/discuss/1003098/?ref=app
https://www.sololearn.com/discuss/404894/?ref=app
https://www.sololearn.com/discuss/1321308/?ref=app
https://www.sololearn.com/discuss/1347789/?ref=app
https://www.sololearn.com/discuss/2022903/?ref=app
https://www.sololearn.com/discuss/272155/?ref=app
0
Aran Antoine hope this helps you