Hi can anyone help me, I am learning the language C but need some help writting some code. what i need to do is from the input of the keyboard i need to find the max and min of some values and out put them. what i got so far is:
// Program to select a Maximum and Minimum from inputted numbers.
#include <stdio.h>
#include <conio.h>
int main ()
{
int numtimes;
int tempnum1, tempnum2, tempnum3;
char indicator = 'y';
clrscr();
do
{
printf("\nEnter a number ");
scanf(" %d", &tempnum1);
printf("\nEnter a second number ");
scanf(" %d", &tempnum2);
printf("\nEnter your thrid number ");
scanf(" %d", &tempnum3);
printf("\nWould you like to continue? (enter n to exit) ");
scanf(" %c",&indicator);
}while((indicator == 'y') || (indicator == 'Y'));
// WHAT DO I DO NOW? ANY IDEAS?
getch();
return 0;
}