Challenges-fundamentals and pattern

i want to ask in question “simple input” we have to take input of one integer, check the conditions than print it or we have to first input all the integers and check the required conditions and after that print all the required numbers one by one.

Please Add the question link.

://online.codingblocks.com/player/11635/content/4693?s=1932

You have to take one input at a time and checkif it follows the condition then only move forward.