当前位置:网站首页>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;
}边栏推荐
- ROS中quaternion四元数和欧拉角转换
- 秒杀系统设计
- R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions
- Can layoffs really save China's Internet?
- 2022 P cylinder filling test exercises and online simulation test
- Quaternion quaternion and Euler angle Transformation in Ros
- 3. 整合 Listener
- csdn涨薪技术-Selenium自动化测试全栈总结
- jsp中获取session中的值
- Configuration du mode tcwind
猜你喜欢

Markdown mermaid种草(1)_ mermaid简介

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

SQL server2019 create a new SQL server authentication user name and log in

easypoi

Echart: category text position adjustment of horizontal histogram

30讲 线性代数 第四讲 线性方程组

5G NR MBS架构介绍

2022茶艺师(中级)考试模拟100题及模拟考试

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

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDe
随机推荐
Average score of 100 people
Comparisonchain file name sort
Markdown mermaid种草(1)_ mermaid简介
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")
数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明
2788.Cifera
Grep text search tool
2280.Cupboards
ThreadLocal原理
SQL server2019 create a new SQL server authentication user name and log in
2022 tea master (intermediate) examination simulated 100 questions and simulated examination
秒杀系统设计
Ali open source (easyexcel)
Configuration du mode tcwind
CSDN salary increase technology selenium automated test stack summary
Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"
wc命令的使用
员工薪资管理系统
Markdown mermaid種草(1)_ mermaid簡介
Kaggle腸胃道圖像分割比賽baseline