12345678910111213141516171819202122232425 |
- #include"io.h"
- #include<stdio.h>
- void OutPut(int* arr, int Arraylength)
- {
- for (int i = 0; i < Arraylength; i++)
- {
- if(arr[i]<10)
- {
- printf(" %d ", arr[i]);
- }
- else
- {
- printf("%d ", arr[i]);
- }
- }
- printf("\n");
-
- }
- void InPutArrayLength(int* Arraylength)
- {
- printf("%s","请输入您想要获得的随机数组长度:\n");
- scanf_s("%d",Arraylength);
- }
|