Please tell me how to print all even and odd number separately in the end . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell me how to print all even and odd number separately in the end .

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

16th Mar 2022, 5:34 PM
Abhay mishra
Abhay mishra - avatar
1 Answer
+ 2
You can add the even and odd numbers in two new arrays and print them at the end. Or Run the loop two more time with checking the conditions again.
16th Mar 2022, 6:07 PM
Kashyap Kumar
Kashyap Kumar - avatar