#How to output three numbers from small to large in C language?
Method:
First create a programming project.
Then import the packages to be used.
Secondly, create a mian function.
Define four more parameters.
Thirdly, set the parameter type to int.
Use the scanf function to receive data.
Fourth, then put the data in the form of %d.
Then pass it to the parameter.
Fifth, then use the if statement to make a judgment.
Then exchange the data.
Sixth, then perform three data exchanges.
Use the printf statement to output the results.
In this way, the code for sorting data from small to large is completed.
Recommended tutorial: "C Language"
The above is the detailed content of How to output three numbers from small to large in C language?. For more information, please follow other related articles on the PHP Chinese website!