How much is my code correct? Grades from 1 to 5! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How much is my code correct? Grades from 1 to 5!

https://code.sololearn.com/cH8xMMTWdUNv/?ref=app

8th Oct 2020, 6:13 PM
TeaserCode
4 Answers
+ 1
TeaserCode use Q&A for asking programming related questions only,if you need suggestion on your code use feed or join some group or maybe message some of your friends
8th Oct 2020, 6:15 PM
Abhay
Abhay - avatar
+ 1
TeaserCode are you looking for a review of your code quality, that it is producing the correct output, or both?
8th Oct 2020, 6:57 PM
MaddieL
MaddieL - avatar
+ 1
Code either correct or not! Either it gives required result or not gives. Cant be half pregnant. Another question: Is your code written in a "elegant" way!
8th Oct 2020, 7:42 PM
Shadoff
Shadoff - avatar
+ 1
4, if you’re going to define the limit var then user input is not needed in the function definition. Also, you can delete the ‘int n,’ declaration in the function as well because the for loop defines it was well.
8th Oct 2020, 8:08 PM
Roderick Davis
Roderick Davis - avatar