在Java中,用System.out.printf(%.af\n,一个数);来输出小数点后指定a位的小数。

在C中,直接用printf(%.af\n,一个数)即可。

[acm自学]关于输出指定位数小数与C语言输出。

若输出数字为long long格式时,则使用

printf("%lld\n",x);

或者

printf("%l64d\n",x);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-07-29
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2021-05-23
  • 2022-02-25
相关资源
相似解决方案