1.(于蕾)
#include <stdio.h>
void main()
{
mt x yt;
x=7;y=9;
if(x<y)
{t=x;x=y;y^t;}
piiDtf(”%d.%d\iT, x,y );
}
运行结果:
9,7
2.(于蕾)
#include <stdio.h>
void main()
{
mt x=l,a=2,b=3;
switch(x) | ||
{ | ||
case | 1: | a-; break; |
case | 2: | b++; break; |
case | 3: | a++;b++; |
} pTintfC\na=%dqb=%d\n”,a,b);
}
运行结果:
a=l,b=3
3.(于蕾)
#include <stdio.h>
void main()
cliai- chi = E; if(chl >= A')
chl++「
else
chl+=32「
pHndf ・chl H *c\n・「chi); chin F
4・(罷)
^include Asrdlo.hv
void maix)
宀
h x》yj;
xdy=3-
lf(xvy)
汩怎么读宀 Yxnc pls-tf(・・*d Wd\iT V x》y )八
3.5
W (出玉)
^include Asalo.hv rnr main()
宀
hupbQsL
plB-tfv・Ell@ three hucgcls..)八 scaDfrfd<d%dJ<&pp?bdc)「 inaAnb)
m=p
else
mg
iKCAm)
BHO-
pmHf(hH*d\irD匚
【ctum 0八 彗>“ 21 22 23人回-mv
111H21
发布评论