标签:
#include<stdio.h>
int main(){
int a[10];
int n = 0, i;
char ch=0;
while (ch != ‘\n‘){
scanf_s("%d",&a[n]);
ch = getchar();
n++;
}
for (i = 0; i < n; i++)
printf("%d ", a[i]);
printf("\n");
return 0;
}
标签:
原文地址:http://www.cnblogs.com/changyaoguo/p/5858018.html