Write a C program called q1.c. It should read from standard input and
write to standard output. For input it expects a sequence of integers
separated by whitespace. After it has read all the integers, it should
output them in reverse order, i.e. opposite to the order in which they were input.
In the output, each integer except the last one
should be followed by a single blank/space.
The last integer output
should be followed by a newline character instead.
There should be no other output.
If there is no number input, there should be no output.
You may assume that the input is well formed and that no input integer
causes int overflow/underflow. And you may assume that there won't be more
than 20 integers in the input.
The following input:
6 8
9 2
1
3 8 8 2 3
1 9 4
should produce this output:
4 9 1 3 2 8 8 3 1 2 9 8 6
Submit q1.c with the following command
submit 2031 lab5 q1.c