编程达人-短码之美 #include<stdio.h>
void main()
{
int max=0,temp;
for (int i=0;i<10;i++)
{
if(scanf("%d",&temp)==1&&temp>max) max=temp;
}
printf("%d\n",max);
}
@wangzheng3056,短了一行,说好的50个体力呢{:3_48:} #include<iostream.h>
void main() {
for(int j=max=temp=0;j<10;j++) {
cin >> temp
if((max < temp) max=temp
}
cout << max
}
:D #include<stdio.h>
void main()
{
int max=0,temp,i=10;
while(i--)
{
if(scanf("%d",&temp)==1&&temp>max)max=temp;
}
printf("%d",max)
}
哇哈哈
{:3_41:}{:3_41:}{:3_41:}
页:
[1]