当前位置:网站首页>AcWing 606. Average 1 (implemented in C language)
AcWing 606. Average 1 (implemented in C language)
2022-06-28 11:57:00 【Q_ ming_ code】
Read two floating point numbers A and B Value , Corresponding to the results of two students .
Please calculate the average score of students , among A The weight of the score is 3.5,B The weight of the score is 7.5.
The value range of grades is 0 To 10 Between , And keep one decimal place .
Input format
The input occupies two lines , Each row contains a floating point number , The first line means A, The second line says B.
Output format
The output format is MEDIA = X, among X Is the average score , Keep the result to five decimal places .
Data range
0≤A,B≤10.0
#include<stdio.h>
int main()
{
float A,B;
double sum;
scanf("%f%f",&A,&B);
sum=(3.5*A+7.5*B)/11.0;
printf("MEDIA = %.5f",sum);
return 0;
}边栏推荐
- Day39 prototype chain and page Fireworks Effect 2021.10.13
- 一套十万级TPS的IM综合消息系统的架构实践与思考
- Chapter 2 do you remember the point, line and surface (2)
- js中的class类模式及语法 2021.11.10
- 近况
- The default point of this in JS and how to modify it to 2021.11.09
- Redis hash hash type string (5)
- Oracle date format exception: invalid number
- 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
- recent developments
猜你喜欢

无法重新声明块范围变量

The default point of this in JS and how to modify it to 2021.11.09

Day31 JS notes DOM 2021.09.26

JS foundation 8

Necessary for beginners PR 2021 quick start tutorial, PR green screen matting operation method

TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush

day29 js笔记 2021.09.23

Convert black mask picture to color annotation file

Day39 prototype chain and page Fireworks Effect 2021.10.13

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
随机推荐
Self use demo of basic component integration of fluent
This Exception was thrown from a job compiled with Burst, which has limited exception support. report errors
Jetpack Compose Desktop 桌面版本的打包和发布应用
day39 原型鏈及頁面烟花效果 2021.10.13
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
Fancy features and cheap prices! What is the true strength of Changan's new SUV?
Web page tips this site is unsafe solution
Ali three sides: what is the difference between using on or where in the left join associated table and the condition
面试步骤的面试技巧
FTP protocol for Wireshark packet capture analysis
2. single digit statistics
Day32 JS note event (Part 1) September 27, 2021
携手Cigent:群联为SSD主控固件引入高级网络安全防护特性
Prepare for Jin San Yin Si I. testers without experience in automated testing projects should look at it quickly
Analyze whether there is duplicate data in the list and repeat it several times
Which broker is safer and more convenient to open an account for Oriental Fortune mobile stock?
day25 js中的预解析、递归函数、事件 2021.09.16
Day24 JS notes 2021.09.15
基于验证码识别的机器学习项目captcha_trainer操作实践
太阳能无线LED显示屏的特点