usaa24/a4/program.c

23 lines
260 B
C
Raw Normal View History

2024-11-19 22:18:54 +00:00
#include <stdio.h>
int main()
{
int a[1000], i=0;
do
{
if(scanf("%d", &a[i])!=1)
break;
else
i++;
}while(1);
for(int j=0; j<i; j++)
{
printf("%d ", a[j]);
}
return 0;
}