#include <stdio.h>
#include <math.h>
#include <float.h>

int main(void)

{ 

	float max=FLT_MIN, a;
	float min=FLT_MAX, b;

	printf("Entering 0 will terminate the sequence of input values.\n");

	do{ printf("Enter Number:");

	if (scanf("%f", &a)==1)
	{

	if ( fabs(a)<0.001 )
		break;

		if(a>max){

			max=a;}

		if(a<min){

			min=a;}

	}

	} while(fabs(a) > 0.001);

	printf("Your largest number was %.3f. Your smallest number was %.3f.", max, min);

	return 0;
}