当前位置:网站首页>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;
}边栏推荐
- Fancy features and cheap prices! What is the true strength of Changan's new SUV?
- Is it safe to buy stocks and open an account on the account QR code of the CICC securities manager? Ask the great God for help
- day31 js笔记 DOM下 2021.09.26
- Which broker is safer and more convenient to open an account for Oriental Fortune mobile stock?
- Join hands with cigent: group alliance introduces advanced network security protection features for SSD master firmware
- 5. Sum of N numbers
- 行业分析| 快对讲,楼宇对讲
- Industry analysis - quick intercom, building intercom
- What method is required for word, PDF and txt files to realize full-text content retrieval?
- 来吧元宇宙,果然这热度一时半会儿过不去了
猜你喜欢

Jetpack Compose Desktop 桌面版本的打包和发布应用

Scientific research - web of science retrieval skills

Day32 JS note event (Part 1) September 27, 2021

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors

js中this的默认指向及如何修改指向 2021.11.09

《运营之光3.0》全新上市——跨越时代,自我颠覆的诚意之作!

Zero foundation self-study SQL course | if function

day36 js笔记 ECMA6语法 2021.10.09

2018 joint examination of nine provinces & Merging of line segment trees
随机推荐
Chendanqi, Fang Fei, guquanquan and Li Bo won the prize, and the list of Sloan research award in 2022 was released
Solutions to connection failures and errors when accessing mysql8 using the SSM project
day23 js笔记 2021.09.14
3. seat number
Adding a new user in MySQL 5.7
Day36 JS notes ecma6 syntax 2021.10.09
Database Series: is there any way to seamlessly upgrade the business tables of the database
NFT card chain game system development DAPP construction technical details
董宇辉,新东方以及凤凰卫视
Everyone can participate in open source! Here comes the most important developer activity in dragon lizard community
Int~long long indicates the maximum and minimum number
AGCO AI frontier promotion (2.16)
The default point of this in JS and how to modify it to 2021.11.09
[no title] the virtual machine vmnet0 cannot be found and an error is reported: there is no un bridged host network adapter
Day31 JS notes DOM 2021.09.26
【北京航空航天大学】考研初试复试资料分享
Contract quantitative trading system development | contract quantitative app development (ready-made cases)
Redis hash hash type string (5)
Day24 JS notes 2021.09.15
FTP protocol for Wireshark packet capture analysis