c语音比较三个数大小
"Finding,and Sharing !<br>Sinton.<br>一、两个数大小比较:<br>int x,y,z;<br>if(x>y)<br>{z=x;x=y;y=z;}<br>二、三个数大小比较:<br>1.常规思维:<br><img><br>2.一行代码:<br>#include<br>void main()<br>{<br>int x,y,z,max;<br>printf(""please input three number:"");<br>scanf(""%d%d%d"",&x,&y,&z);<br>max=(x>y?x:y)>z?(x>y?x:y):z;<br>printf(""THE MAX IS %d\n"",max);<br>}"
题目<br>答案解析<br>查看更多优质解析<br>举报<br>挨着的话 就用on the desk<br>正上方 over the desk<br>斜上方 above the desk<br>解析看不懂?求助智能家教解答<br>查看解答<br>更多答案(3)<br>相似问题