2025-02-21

This commit is contained in:
smallkun 2025-02-21 20:05:39 +08:00
parent a546c2f47c
commit c7ec5eb71f

View File

@ -1,27 +1,27 @@
#include <stdio.h> #include <stdio.h>
/* /*
if(){ if(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>){
() <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>ʱִ<EFBFBD><EFBFBD>)
}else{ }else{
() <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>ʱִ<EFBFBD><EFBFBD>)
} }
*/ */
int main(void){ int main(void){
int x, y, z, t;//定义三个整型变量 int x, y, z, t;//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD><EFBFBD><EFBFBD>
//数据类型 变量名1, 变量名2; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2;
scanf("%d%d%d", &x, &y, &z); scanf("%d%d%d", &x, &y, &z);
if(x > y){ if(x > y){
t = x; t = x;
x = y; x = y;
y = t; y = t;
}//实现x和y比较 大数放y位置 }//ʵ<EFBFBD><EFBFBD>x<EFBFBD><EFBFBD>y<EFBFBD>Ƚ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><79><CEBB>
if(y > z){ if(y > z){
t = y; t = y;
y = z; y = z;
z = t; z = t;
}//实现y和z比较 大数放z位置 z为三个数字中最大数 }//ʵ<EFBFBD><EFBFBD>y<EFBFBD><EFBFBD>z<EFBFBD>Ƚ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><7A><CEBB><7A><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if(x > y){ if(x > y){
t = x; t = x;
x = y; x = y;