What's wrong with my code? ( Beginner) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
9th Oct 2022, 6:55 AM
Viswa
2 Answers
+ 3
- All your spaces was invalide char. Don't know why... - your printSum() method return void, and print the value in term. So, just call the method without print or return a value to print in main methode. https://code.sololearn.com/cEnQ8JZ8sVB7/?ref=app
9th Oct 2022, 9:55 AM
Roland
Roland - avatar
+ 3
Thank you bro
9th Oct 2022, 9:58 AM
Viswa