0

C# Spent 4 hours on this noob code HELP!

C# Keeps giving me string to int error

10th Jan 2022, 9:21 PM
Chris Biddamaa
Chris Biddamaa - avatar
4 Antworten
+ 1
Your function is supposed to return an integer but you try to return a string. So what do you want to return?
10th Jan 2022, 9:28 PM
Lisa
Lisa - avatar
10th Jan 2022, 9:21 PM
Chris Biddamaa
Chris Biddamaa - avatar
0
https://code.sololearn.com/cLrj6420KXL0/?ref=app Actually just fixed it by adding 2 lines and changing int to string ffs...this was part of a test for an apprenticeship job
10th Jan 2022, 9:33 PM
Chris Biddamaa
Chris Biddamaa - avatar
0
P.S this was task 1/3 from a 4 hour time slot of them testing my code creating ability. Failed miserably
10th Jan 2022, 9:34 PM
Chris Biddamaa
Chris Biddamaa - avatar