例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; }
相關文章
相關標籤/搜索