Anonymous
public text v1 · immutable#include<stdio.h>
#define SIZE 5
void check(int a[]);
int main(void)
{
int num[SIZE];
int i;
printf("Please enter your 20 integers between 10-100.\n");
//Reads user input and places in an array
for(i=0; i<SIZE; i++)
{
scanf("%d", &num[i]);
check(num[i]);
}
return(0);
}
//Checks to see if the number was already entered
void check(int a[])
{
int count;
count=0;
if(count==a[]);
{
printf("This number was already entered");
}
count=a[];
}