例4.2

int main() {float a,b,t; scanf("%f,%f",&a,&b); if(a>b) {//将a与b的值互换 t=a; a=b; b=t; }printf("%5.0f,%5.2f\n",a,b); return 0; }
相关文章
相关标签/搜索