当前位置:网站首页>AcWing 609. Salary (implemented in C language)
AcWing 609. Salary (implemented in C language)
2022-06-28 11:58:00 【Q_ ming_ code】
Please write a program , You can read an employee's employee number , Total working hours of this month ( Hours ) And hourly rate , And output his payslip , The payslip includes the employee number and the employee's monthly income .
Input format
The input contains two integers and a floating point number , Each represents the employee number , Working hours and hourly salary .
Each number takes up a line .
Output format
The output consists of two lines , The first line is formatted as NUMBER = X, among X Number employees .
The format of the second line is SALARY = U$ Y, among Y Is the employee's monthly income , Keep two decimal places .
Data range
1≤ Employee number ≤100,
1≤ Total working hours ≤200
1≤ hourly wage ≤50
#include<stdio.h>
int main()
{
int X,a;
float b,money;
scanf("%d%d%f",&X,&a,&b);
money=a*b;
printf("NUMBER = %d\nSALARY = U$ %.2f",X,money);
return 0;
}边栏推荐
- 2022 open source software security status report: over 41% of enterprises do not have enough confidence in open source security
- Adding a new user in MySQL 5.7
- 《运营之光3.0》全新上市——跨越时代,自我颠覆的诚意之作!
- Unity screenshot function
- It is safer for individuals to choose which securities company to open an account for buying floor funds
- 水果FL Studio/Cubase/Studio one音乐宿主软件对比
- Day34 JS notes regular expression 2021.09.29
- 多维度监控:智能监控的数据基础
- day39 原型链及页面烟花效果 2021.10.13
- Self use demo of basic component integration of fluent
猜你喜欢

Day37 JS note motion function 2021.10.11

QML control type: tabbar
![Connectionreseterror: [winerror 10054] the remote host forced an existing connection to be closed](/img/9a/97813f5ac4d7c15711891cff25b9dd.jpg)
Connectionreseterror: [winerror 10054] the remote host forced an existing connection to be closed

day30 js笔记 BOM和DOM 2021.09.24

Class pattern and syntax in JS 2021.11.10

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

太阳能无线LED显示屏的特点

js中的class类模式及语法 2021.11.10

Packaging and publishing application of jetpack compose desktop version

day34 js笔记 正则表达式 2021.09.29
随机推荐
Chendanqi, Fang Fei, guquanquan and Li Bo won the prize, and the list of Sloan research award in 2022 was released
Web3 security serials (3) | in depth disclosure of NFT fishing process and prevention techniques
Analyze whether there is duplicate data in the list and repeat it several times
What is DAPP system development and analytical understanding
Day39 prototype chain and page fireworks effect 2021.10.13
.NET混合开发解决方案24 WebView2对比CefSharp的超强优势
Day31 JS notes DOM 2021.09.26
Day34 JS notes regular expression 2021.09.29
Graphics view framework for QT learning (to realize startup animation)
买股票在中金证券经理的开户二维码上开户安全吗?求大神赐教
ProCAST finite element casting process simulation software
2022 open source software security status report: over 41% of enterprises do not have enough confidence in open source security
day28 严格模式、字符串 js 2021.09.22
Chapter 2 do you remember the point, line and surface (2)
mysql-. SQL file phishing Online
一套十万级TPS的IM综合消息系统的架构实践与思考
來吧元宇宙,果然這熱度一時半會兒過不去了
recent developments
Data analysis learning notes
SoapUI rookie tutorial