练习3:已知存放在a数组中的数不相重合,在a数组中查找与x值相同的元素位置
若找出,输出该值在a数组中的位置,若没有找到,输出相应的信息
做题的思路步骤:
(1).赋值
(2).输出
(3).查找
(4).输出
#include <stdio.h>
#include <Windows.h>
#define N 50
int arrin(int *a)
{
int n,i;
do
{
printf("enter number of elements ,0<=n<%d:",N);//element:元素
scanf("%d",&n);
}while(n<1||n