Read and Print Array Problem
Read and Print Array Problem — ExecCode School DSA Practice
Solve the Read and Print Array problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given some numbers. Your task is to print all these numbers back on one line, keeping the same order and spaces. First, you'll read how many numbers there are. Then, you'll read all those numbers on another line, separated by spaces.
Examples
Input 4 1 2 3 4; Output 1 2 3 4. Input 2 -1 -2; Output -1 -2
Constraints
1 <= N <= 1000 -10^9 <= A[i] <= 10^9
Practice Read and Print Array free on ExecCode. Browse DSA problems, topic map, and placement guides.