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;
}

例4.2

相关文章:

  • 2021-07-22
  • 2021-10-21
  • 2021-11-22
  • 2021-09-17
  • 2021-05-15
  • 2022-02-21
  • 2021-07-23
  • 2022-01-23
猜你喜欢
  • 2021-09-05
  • 2021-11-18
  • 2022-12-23
  • 2021-04-23
  • 2021-10-09
  • 2021-08-22
  • 2021-06-26
相关资源
相似解决方案