Write a C program that reads an integer n followed by n integers and stores them in a 1D array. Then, the program should print all the elements of the array separated by a single space.
Example
Input:
5
10 20 30 40 50
Output:
10 20 30 40 50
Constraints
1 <= n <= 100
Input Format
An integer n, followed by n integers.
Output Format
Space-separated integers.
Sample Testcases
Submit runs every public testcase in this browser. Results and code never leave this device.
Sample #1
Public sample
Input
5
1 2 3 4 5
Output
1 2 3 4 5
Explanation
Basic case with 5 sequential elements.
Sample #2
Public sample
Input
1
99
Output
99
Explanation
Edge case: Array with a single element.
Sample #3
Public sample
Input
3
-1 -2 -3
Output
-1 -2 -3
Explanation
Case with negative numbers.
Web terminal
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.