#include <stdio.h>
main()
{
int a=12,b=3;
    float x=18.5,y=4.6;
    printf ("%f\n",(float)(a*b)/2);

    printf ("%d\n",(int)x%(int)y);

知识点:1.不能对浮点数进行求余

                2.乘法运算符不能省略

心得体会:程序虐我千百遍,我待程序如初恋简单除法和求余

相关文章:

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