How to use the code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use the code coach

I'm new here and tried to solve some problem in code coach but it tells me that I have no output, should it be in main? In function? A return or print?

4th Aug 2023, 9:24 AM
xgr nthu
8 Answers
+ 5
xgr nthu , there are several issues that has to be fixed: > no input is used, but a fixed value of 3 > missing else clause ... > review both lines with the calculations ... > read the task description.
18th Aug 2023, 8:30 PM
Lothar
Lothar - avatar
+ 4
The output need to be printed.
4th Aug 2023, 9:28 AM
JaScript
JaScript - avatar
+ 4
xgr nthu , if i take your current code as it is, it outputs 2 numbers. try it in playground, not as a code coach. if you run the code in code coach, it will show that all test cases fail. (due to the issues i mentioned to you)
19th Aug 2023, 8:47 PM
Lothar
Lothar - avatar
+ 4
xgr nthu , please post your ***latest code***, so that we can see your issue.
23rd Aug 2023, 12:34 PM
Lothar
Lothar - avatar
+ 3
xgr nthu , > we need to see your code attempt first, before we can support you. > please save your code in playground, and post a link to it here.
4th Aug 2023, 6:56 PM
Lothar
Lothar - avatar
0
Lothar The 3 is there just for test but every time I run it it says no output, even with the 3
19th Aug 2023, 7:50 AM
xgr nthu
0
Lothar Yeah ok I fixed the else thing, it was this way because I used a return statement, but still I get 'no output' error in the code coach How do I make it to take input? Should I use argc and argv? Or is there something I'm missing? And thanks for the answers
21st Aug 2023, 4:52 PM
xgr nthu