C语言实验——三个整数和、积与平均值


#include <stdio.h>
#include <stdlib.h>


int main()
{
    int a, b, c, sum, pro;
    double ave;
    scanf("%d %d %d",&a, &b, &c);
    sum = a + b + c;
    ave = sum / 3.0;
    pro = a * b *c;
    printf("%d %d %.2lf\n",sum, pro, ave);
    return 0;
}

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案