#include <stdio.h>void main () {float a,b,c,d,e,f,g,t;scanf ("%f,%f,%f,%f,%f,%f,%f",&a,&b,&c,& D,&E,&F,&G); if (a>b) {t=a;a=b;b=t;} if (a>c) {t=c;c=a;a=t;} if (a>d) {t=d;d=a;a=t;} if (a>e) {t=e;e=a;a=t;} if (a>f) {t=f;f=a;a=t;} if (a>g) {t=g;g=a;a=t;} if (b>c) {t=c;c=b;b=t;} if (b>d) {t=d;d=b;b=t;} if (b>e) {t=e;e=b;b=t;} if (b>f) {t=f;f=b;b=t;} if (b>g) {t=g;g=b;b=t;} if (c>d) {t=d;d=c;c=t;} if (c>e) {t=e;e=c;c=t;} if (c>f) {t=f;f=c;c=t;} if (c>g) {t=g;g=c;c=t;} if (d>e) {t=e;e=d;d=t;} if (d>f) {t=f;f=d;d=t;} if (d>g) {t=g;g=d;d=t;} if (e>f) {t=f;f=e;e=t;} if (e>g) {t=g;g=e;e=t;} if (f>g) {t=g;g=f;f=t;} printf ("%-5.2f,%5.2f,%5.2f,%5.2f,%5.2f,%5.2f,%5.2f\n", A,b,c,d,e,f,g);}
Replace with the intermediate variable t
Then use a to compare the size, then B, then C .... Finally determine the size of f and G.
Output
Growth record if statement output from large to small numbers