英特尔h61主板怎么样:怎样用C语言比较6个变量的大小?
来源:百度文库 编辑:中科新闻网 时间:2024/04/20 21:48:17
设 int s1,s2,s3,s4,s5,s6 ,
怎样让程序输出其中的最大值?
怎样让程序输出其中的最大值?
temp=s1;
if(s2>temp){temp=s2;}
if(s3>temp){temp=s3;}
if(s4>temp){temp=s4;}
if(s5>temp){temp=s5;}
if(s6>temp){temp=s6;}