why can't I convert (String to Int) in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
30th Jun 2020, 7:45 PM
Balaji
Balaji - avatar
2 Answers
+ 7
edit with this last line will work Try it print(cheer(yards: Int(readLine()!)!))
30th Jun 2020, 7:58 PM
᮴Ridwan_
᮴Ridwan_ - avatar
+ 4
Thanks it's working! my problem is solved.
30th Jun 2020, 8:04 PM
Balaji
Balaji - avatar