当前位置:网站首页>AcWing 607. Average 2 (implemented in C language)
AcWing 607. Average 2 (implemented in C language)
2022-06-28 11:57:00 【Q_ ming_ code】
Read three floating point numbers A,B and C Value , Corresponding to the scores of three students .
Please calculate the average score of students , among A The weight of the score is 2,B The weight of the score is 3,C The weight of the score is 5.
The value range of grades is 0 To 10 Between , And keep one decimal place .
Input format
There are three lines of input , Each row contains a floating point number , The first line means A, The second line says B, The third line says C.
Output format
The output format is MEDIA = X, among X Is the average score , The result is one decimal place .
Data range
0≤A,B,C≤10.0
#include<stdio.h>
int main()
{
float A,B,C,sum;
scanf("%f%f%f",&A,&B,&C);
sum=(A*2+B*3+C*5)/10.0;
printf("MEDIA = %.1f",sum);
return 0;
}边栏推荐
- The development and principle of the metacosmic system
- js中的class类模式及语法 2021.11.10
- day28 严格模式、字符串 js 2021.09.22
- Characteristics of solar wireless LED display
- Random forest and poetry maker trained by AMR
- This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors
- JS foundation 8
- day39 原型链及页面烟花效果 2021.10.13
- [no title] the virtual machine vmnet0 cannot be found and an error is reported: there is no un bridged host network adapter
- day34 js笔记 正则表达式 2021.09.29
猜你喜欢

Remote login sshd service

Simple understanding of ThreadLocal

.NET混合开发解决方案24 WebView2对比CefSharp的超强优势

day37 js笔记 运动函数 2021.10.11

Simulation of the Saier lottery to seek expectation

Day39 prototype chain and page fireworks effect 2021.10.13

Zero foundation self-study SQL course | if function

Fancy features and cheap prices! What is the true strength of Changan's new SUV?

Graphics view framework for QT learning (to realize startup animation)

Day32 JS note event (Part 1) September 27, 2021
随机推荐
recent developments
ProCAST finite element casting process simulation software
Contract quantification system development (construction explanation) - contract quantification system development (source code analysis and ready-made cases)
day33 js笔记 事件(下)2021.09.28
3. seat number
来吧元宇宙,果然这热度一时半会儿过不去了
Graduated
Analyze whether there is duplicate data in the list and repeat it several times
Day32 JS note event (Part 1) September 27, 2021
Web3 security serials (3) | in depth disclosure of NFT fishing process and prevention techniques
Fancy features and cheap prices! What is the true strength of Changan's new SUV?
AGCO AI frontier promotion (2.16)
It is safer for individuals to choose which securities company to open an account for buying floor funds
智联招聘基于 Nebula Graph 的推荐实践分享
Lihongyi, machine learning 7 Conclusion
For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?
Array method in JS 2021.09.18
面试步骤的面试技巧
无法重新声明块范围变量
QML控件类型:TabBar