#include <stdio.h>
#include <conio.h>
int main()
{
float a,b,c,d,min,max,r;
printf("\na = "); scanf("%f",&a);
printf("b = "); scanf("%f",&b);
printf("c = "); scanf("%f",&c);
printf("d = "); scanf("%f",&d);
a = min;
if (b < min) b = min;
if (c < min) c = min;
if (d < min) d = min;
a = max;
if (b > max) b = max;
if (c > max) c = max;
if (d > max) d = max;
r = max - min;
printf ("\nmin = %2.5f",min);
printf ("\nmax = %2.5f",max);
printf ("\nRaznost = %2.5f",r);
getch();
}
Max,min и их разность, float |