当前位置:网站首页>实型数运算
实型数运算
2022-06-28 19:51:00 【Zaltana】
编写一个简单程序,用户输入2个实型数据存储在变量中,并输出他们的乘积与商(不考虑除数为0的情况)
例如
输入:3.1 4.2
输出: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;
}边栏推荐
- 1002_ twenty million one hundred and eighty-one thousand and nineteen
- Markdown Mermaid planting grass (1)_ Introduction to Mermaid
- Configuration du mode tcwind
- CSDN salary increase technology selenium automated test stack summary
- odoo15 Module operations are not possible at this time, please try again later or contact your syste
- Windows 64 bit download install my SQL
- 2022年P气瓶充装考试练习题及在线模拟考试
- Markdown mermaid种草(1)_ mermaid简介
- Kaggle gastrointestinal image segmentation competition baseline
- How to learn JS through w3school / how to use the JS reference manual of w3school
猜你喜欢

数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明

Day88.七牛云: 房源图片、用户头像上传

Jenkins pipeline's handling of job parameters

Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?

Markdown mermaid种草(1)_ mermaid简介

R语言GLM广义线性模型:逻辑回归、泊松回归拟合小鼠临床试验数据(剂量和反应)示例和自测题

C # connect to the database to complete the operation of adding, deleting, modifying and querying

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions

Industry analysis - quick intercom, building intercom

Intelligent computing system 1 environment construction
随机推荐
Paper notes: universal value function approvers
还在付费下论文吗?快来跟我一起白piao知网
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};
怎么理解云原生数据库的快速迭代?
The first meta universe concept novel, meta universe 2086, won the upper attack meta universe award in 2022
ROS中quaternion四元數和歐拉角轉換
Ali open source (easyexcel)
rsync远程同步
社招两年半10个公司28轮面试面经
Concours de segmentation des images gastro - intestinales de kaggle Baseline
裁员真能拯救中国互联网?
Quaternion quaternion and Euler angle transformation in ROS
1002_20181019
Number theory -- detailed proof of Euler function, sieve method for Euler function, Euler theorem and Fermat theorem
Windows 64 bit download install my SQL
Average score of 100 people
数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明
30讲 线性代数 第四讲 线性方程组
risc-v指令集
Double contextual relationship network for polyp segmentation