how can we scan integers until newline character using cin
Can you give more insight about the question.