All pastes #391242 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-11 23:53 UTC
rendered paste body
#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[];
}