当前位置:网站首页>Real number operation
Real number operation
2022-06-28 20:13:00 【Zaltana】
Write a simple program , User input 2 Real data is stored in variables , And output their product and quotient ( Regardless of the divisor 0 The situation of )
for example
Input :3.1 4.2
Output :3.100000*4.200000=13.020000
3.100000/4.200000=0.738095
#include<bits/stdc++.h>
using namespace std;
int main( )
{
double a,b;
scanf("%lf",&a);
scanf("%lf",&b);
printf("%0.6lf*%0.6f=%0.6lf\n",a,b,a*b) ;
printf("%0.6lf/%0.6f=%0.6lf",a,b,a/b) ;
return 0;
}边栏推荐
- H5 sunflower operation
- The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
- JVM memory structure
- Configuration du mode tcwind
- 【324. 摆动排序 II】
- 2788.Cifera
- 核芯物联蓝牙aoa定位系统服务器配置估算
- UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
- easypoi
- echart:横向柱状图的类目文字位置调整
猜你喜欢

How to obtain the coordinates of the aircraft passing through both ends of the radar

还在付费下论文吗?快来跟我一起白piao知网

UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation

echart:横向柱状图的类目文字位置调整

社招两年半10个公司28轮面试面经

C#应用程序界面开发基础——窗体控制

《数据安全法》出台一周年,看哪四大变化来袭?

2022 t elevator repair test question bank simulation test platform operation

【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习

Leetcode week 299
随机推荐
QSP read label configuration error
5g NR MBS architecture introduction
How to "calculate" in the age of computing power? The first mover advantage of "convergence of computing and networking" is very important!
怎么理解云原生数据库的快速迭代?
2022年P气瓶充装考试练习题及在线模拟考试
Grep text search tool
3. 整合 Listener
Markdown mermaid种草(1)_ mermaid简介
裁员真能拯救中国互联网?
Are you still paying for your thesis? Come and join me
csdn涨薪技术-Selenium自动化测试全栈总结
ArrayList of collection
two thousand three hundred and forty-two
TcWind 模式設定
员工薪资管理系统
[324. swing sequence II]
ROS中quaternion四元数和欧拉角转换
Past blue bridge cup test questions ants catch cold
Troubleshooting of pyinstaller failed to pack pikepdf
各种类型长