HELP ME, GIVE ME SOME SOLUTIONS! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HELP ME, GIVE ME SOME SOLUTIONS!

I Made an even number series program, but what i want is that the output of the numbers id neat, not longitudinal to the right. I want the numbers row to move down(new line) after the fourth number in first line. My code: https://code.sololearn.com/cxeqawsjmBDb/?ref=app

23rd Oct 2020, 8:34 PM
hafidz ridwan cahya
hafidz ridwan cahya - avatar
2 Answers
0
Find average of c, max values and put a new line when c==avg.. in loop...
23rd Oct 2020, 10:10 PM
Jayakrishna 🇮🇳
0
hafidz ridwan cahya Here's your program https://code.sololearn.com/cwOzOzVMaJ9F/?ref=app Try to understand how it works, on your own. If you have any doubt I am here. edit: I realized that you wanted a program for even numbers only after I made the program. This one works also for odd numbers, but you can easily modify it for your purpose. reedit: I modified it cause I have nothing better to do 😭
23rd Oct 2020, 11:06 PM
Davide
Davide - avatar