Help please.
Given the numbers a, b, c, d. If a < b < c < d , then replace each number with the smallest, if a > b > c > d , then reduce each number by 40%, otherwise leave the numbers unchanged.
Program Code:
include <stdio.h> include <windows.h> include <conio.h> include <math.h> main() { float a,b,c,d; if (a < b && b < c && c < d) { b=a; c=a; d=a; } else if (a > b && b > c && c > d); { a=aa*0.4; b=bb*0.4; c=cc*0.4; d=dd*0.4; } printf("a=%fb=%fc=%fd=%f", a,b,c,d); fflush(stdin); getchar(); return(0); }