Guys please help! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guys please help!

Please help me solve this code: "division by 3"; Input:7 or others numbers Must output:1,2,*,4,5,*,7 My output:no output My code is bellow https://code.sololearn.com/codIlcxU802T/?ref=app

8th Mar 2021, 4:59 PM
Чесноков Максим
Чесноков Максим - avatar
2 Answers
+ 4
You need another curly bracket to close the while loop. You also need an end condition for the loop. You also should have a way to print the numbers that are not multiples of three. Please compare to how I solved it: https://code.sololearn.com/c7wmwD8OZpIB/?ref=app
8th Mar 2021, 5:02 PM
Elijah Brown
Elijah Brown - avatar
0
thanks)
8th Mar 2021, 5:06 PM
Чесноков Максим
Чесноков Максим - avatar