Update a4/program.c

This commit is contained in:
Yurii Yakovenko 2024-11-19 22:18:54 +00:00
parent f540efe32f
commit f0d0df803f

View File

@ -0,0 +1,22 @@
#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;
}