+ 1

I don't get what is going on here

It constantly keeps giving an error msg https://code.sololearn.com/ctGuq8GWAHcK/?ref=app

6th Jul 2022, 7:01 AM
Shivansh Mourya
Shivansh Mourya - avatar
2 Answers
+ 1
Func() method was defined with `int` as the return type. But no `return` statement was issued within its body, that's the problem. Solution: Return the calculation result and display it in Main() method
6th Jul 2022, 7:46 AM
Ipang
+ 1
Thanks got it
6th Jul 2022, 7:48 AM
Shivansh Mourya
Shivansh Mourya - avatar