1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#include <stdio.h>
#include <conio.h>
int main()
{
void findMin(int tegers[], int size); //Function Prototypes
void findMax(int tegers[], int size);
int a,b,c,d,e,i;
int tegers[5] = {a,b,c,d,e};
for(i=0;i<5;i++)
{
clrscr();
printf("%d numbers remaining...\n", 5 - 1);
printf("Enter a number: ");
scanf("%d", &tegers[i]);
}
printf("\nThe smallest number is %d", findMin(tegers, 5));
printf("\nThe largest number is %d", findMax(tegers, 5));
return 0;
}
void findMin(int tegers[], int size)
{
//Questionable stuff here...
}
void findMax(int tegers[], int size)
{
//Questionable stuff here...
}
|