【求教】为了顺利复制粘贴应用输出的数据,如何整齐输出数据?
#include<stdio.h> void main()
{
int c[62],i[170],j,k=62,g=170;
printf("请输入(1)个整数: \n");
for(j=0;j<k;j++)
scanf("%d",&c[j]);
printf("\n");
for(j=0;j<g;j++)
scanf("%d",&i[j]);
printf("\n");
for(j=0;j<k;j++)
printf("%d,",c[j]);
printf("\n");
for(j=0;j<g;j++)
printf("%d,",i[j]);
printf("\n");
}
输入的数据:
1 3 4 8 16 24 28 33 34 35
39 41 45 50 51 56 60 61 62 69
70 72 76 80 87 88 92 93 94 96
102 107 110 115 120 122 126 130 136 139
145 148 153 160 162 167 174 182 183 190
191 192 193 194 202 207 209 211 212 214
217 224
2 6 12 13 14 15 16 20 23 24 25 26 27 30 31 33 34
1 2 3 4 11 12 13 14 15 19 24 26 29 33 34 36 39
1 3 4 9 12 13 21 29 32 33 34 41 42 43 48 49 52
0 5 8 10 18 21 22 28 35 43 46 47 48 51 52 53 54
0 5 6 7 11 14 15 17 20 22 23 25 27 28 35 36 38
2 11 12 13 14 16 19 20 23 24 25 26 27 30 31 32 33
1 2 3 4 10 11 12 13 14 19 24 26 29 32 33 34 39
1 3 4 9 10 12 13 21 23 32 33 34 41 43 48 49 52
0 5 8 10 18 21 22 23 28 31 35 38 43 46 47 48 51
0 3 6 7 11 14 15 17 20 22 25 27 31 36 38 40 41
输出的数据:
请输入(1)个整数:
1 3 4 8 16 24 28 33 34 35
39 41 45 50 51 56 60 61 62 69
70 72 76 80 87 88 92 93 94 96
102 107 110 115 120 122 126 130 136 139
145 148 153 160 162 167 174 182 183 190
191 192 193 194 202 207 209 211 212 214
217 224
2 6 12 13 14 15 16 20 23 24 25 26 27 30 31 33 34
1 2 3 4 11 12 13 14 15 19 24 26 29 33 34 36 39
1 3 4 9 12 13 21 29 32 33 34 41 42 43 48 49 52
0 5 8 10 18 21 22 28 35 43 46 47 48 51 52 53 54
0 5 6 7 11 14 15 17 20 22 23 25 27 28 35 36 38
2 11 12 13 14 16 19 20 23 24 25 26 27 30 31 32 33
1 2 3 4 10 11 12 13 14 19 24 26 29 32 33 34 39
1 3 4 9 10 12 13 21 23 32 33 34 41 43 48 49 52
0 5 8 10 18 21 22 23 28 31 35 38 43 46 47 48 51
0 3 6 7 11 14 15 17 20 22 25 27 31 36 38 40 41
1,3,4,8,16,24,28,33,34,35,39,41,45,50,51,56,60,61,62,69,70,72,76,80,87,88,92,93,
94,96,102,107,110,115,120,122,126,130,136,139,145,148,153,160,162,167,174,182,18(数据断行?)
3,190,191,192,193,194,202,207,209,211,212,214,217,224,
2,6,12,13,14,15,16,20,23,24,25,26,27,30,31,33,34,1,2,3,4,11,12,13,14,15,19,24,26
,29,33,34,36,39,1,3,4,9,12,13,21,29,32,33,34,41,42,43,48,49,52,0,5,8,10,18,21,22
,28,35,43,46,47,48,51,52,53,54,0,5,6,7,11,14,15,17,20,22,23,25,27,28,35,36,38,2,
11,12,13,14,16,19,20,23,24,25,26,27,30,31,32,33,1,2,3,4,10,11,12,13,14,19,24,26,
29,32,33,34,39,1,3,4,9,10,12,13,21,23,32,33,34,41,43,48,49,52,0,5,8,10,18,21,22,
23,28,31,35,38,43,46,47,48,51,0,3,6,7,11,14,15,17,20,22,25,27,31,36,38,40,41,
Press any key to continue
例如:167,174,182,18(183数据断行?)
3,190,191,