From c7ec5eb71f1a56969050858d263665ca5c548e10 Mon Sep 17 00:00:00 2001 From: smallkun Date: Fri, 21 Feb 2025 20:05:39 +0800 Subject: [PATCH] 2025-02-21 --- 2207/C语言同步练习源码/1.选择结构-1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/2207/C语言同步练习源码/1.选择结构-1.c b/2207/C语言同步练习源码/1.选择结构-1.c index fa1fed8..9901fca 100644 --- a/2207/C语言同步练习源码/1.选择结构-1.c +++ b/2207/C语言同步练习源码/1.选择结构-1.c @@ -1,27 +1,27 @@ #include /* -if(){ - (Ϊʱִ) +if(����){ + �������(����Ϊ��ʱִ��) }else{ - (Ϊʱִ) + �������(����Ϊ��ʱִ��) } */ int main(void){ - int x, y, z, t;//ͱ - // 1, 2; + int x, y, z, t;//�����������ͱ��� + //�������� ������1, ������2; scanf("%d%d%d", &x, &y, &z); if(x > y){ t = x; x = y; y = t; - }//ʵxyȽ yλ + }//ʵ��x��y�Ƚ� ������yλ�� if(y > z){ t = y; y = z; z = t; - }//ʵyzȽ zλ zΪ + }//ʵ��y��z�Ƚ� ������zλ�� zΪ��������������� if(x > y){ t = x; x = y;