今天上实验课,编了这个东东
是不是很幼稚
有什么改进跟我说啊!
# include <iostream.h>
void main(void){
int a,b,c,i,t;
cout<<"please input three numbers"<<'\n ';
cin>>a>>b>>c;
cout<<"a="<<a<<'\n ';
cout<<"b="<<b<<'\n ';
cout<<"c="<<c<<'\n ';
i=(t=a<=b?a:b)<=c?t:c;
cout<<"main(a,b,c)="<<i<<'\n ';
}