输入一个正整数n (1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 12:58:55
x){o֥Ov4<ٱϦny6uCMR>Y;B3sJSR2Jr343S4B`2$``i" &B"P/!\PHPz~;Թ{Xa?]2醉w)i"''u(!, YUYDRTqBQjIiQ!?S50 [_ik`i_\g M
输入一个正整数n (1
输入一个正整数n (1
输入一个正整数n (1
#include
#include
int main(void)
{
\x09int n = 0, i;
\x09int min = 0,minpos = 0;
\x09int* a = NULL;
\x09printf("请输入你要输入多少整数\n");
\x09scanf("%d",&n);
\x09a = (int*)malloc(n*sizeof(int));
\x09if(a == NULL) return -1;
\x09printf("请输入这%d个整数\n",n);
\x09for(i=0; i