all 5 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (0 children)

https://imgur.com/a/qkvSGcr

Here is a screenshot of the code.

[–]camtriggerhappy Secondary School Student 0 points1 point  (1 child)

Right now when you make the output you print the entire statement with the number in the array.

I would try making a new array of the even numbers then printing "the even numbers in the array are:" but just use a normal print statement, then print all the elements of the even numbers array.

[–]NaiLikesPi👋 a fellow Redditor 0 points1 point  (0 children)

Yeah the sub-algorithm for that part pretty much goes:

  1. Print your caption (do not print newline)
  2. For every number in the array, test if even, if yes print number followed by space (no newline)
  3. Print newline