#include <stdio.h>
#include <conio.h>

int main(int argc, char * argv[])
{
    float stu1, stu2, stu3;
    double average;

    printf("请输入3个学生的语文成绩\n");
    scanf("%f,%f,%f", &stu1, &stu2, &stu3);
    average = (stu1+stu2+stu3)/3.0;
    printf("这三个学生的平均成绩是:%6.2f\n", average);
    getchar();
    getch();
    

    return 0;
}

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2021-06-02
  • 2021-05-29
  • 2021-12-08
  • 2022-12-23
  • 2021-04-17
  • 2021-06-18
相关资源
相似解决方案