#include <stdio.h> #include <stdlib.h> / * Title: three input integers x, y, z, please put the three ascending output number * / int main () { System ( " Color 1F " ); // set the display frame for the blue white System ( " MODE CON Lines cols = 80 = 30 " ); // fixed display frame size / * ************** *************************** program body parting line (top) **************** ******** * / int X, Y, Z, TEMP; the while ( . 1 ) { the printf ( " enter first integer: " ); Scanf ( " % D ", & X); the printf ( " Please enter the second integer: " ); Scanf ( " % D " , & Y); the printf ( " Please enter a third integer: " ); Scanf ( " % D " , & Z); IF (X> Y) { TEMP = X; X = Y; Y = TEMP; } IF (X> Z) { TEMP = X; X = Z; Z= TEMP; } IF (Y> Z) { TEMP = Y; Y = Z; Z = TEMP; } the printf ( " three numbers ascending order:% D% D% D \ n- " , X, Y , Z); the printf ( " ________________________________________________________________________________ " ); } / * ************************************ ***** program body parting line (bottom) ************************************************************ * / return 0 ; }