当前位置:网站首页>Decimal, exponential
Decimal, exponential
2022-07-04 15:04:00 【Zaltana】
Output 3.1415926、12345678.123456789 Decimals of 、 Exponential form .
Format .
Input format : nothing
Output format : Output is real , The blank space to separate
Examples
Input : nothing
Output : 3.141593 3.141593e+000
12345678.123457 1.234568e+007
#include<bits/stdc++.h>
using namespace std;
double a = 3.1415926 ,b=12345678.123456789 ;
void solve(double a){
printf("%.6lf",a) ;
int i=0;
while (a > 10) {
a =a / 10.0;
i++;
}
printf(" %.6lfe+",a);
cout << setw(3) << setfill('0')<< i;
return ;
}
int main(){
solve(a);
cout << endl;
solve(b);
return 0;
}
边栏推荐
- Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
- Helix swarm Chinese package is released, and perforce further improves the user experience in China
- 03 storage system
- Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
- Techsmith Camtasia Studio 2022.0.2屏幕录制软件
- How to handle exceptions in multithreading?
- Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)
- 重排数组
- 深度学习 神经网络案例(手写数字识别)
- Numpy notes
猜你喜欢

韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯

Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist

They are all talking about Devops. Do you really understand it?

UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks

微博、虎牙挺进兴趣社区:同行不同路

现代控制理论入门+理解
![LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路](/img/4a/6763e3fbdeaf9de673fbe8eaf96858.png)
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
Redis的4种缓存模式分享
![LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路](/img/4a/6763e3fbdeaf9de673fbe8eaf96858.png)
LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路

曝光一下阿里的工资待遇和职位级别
随机推荐
ES6 modularization
MySQL组合索引(多列索引)使用与优化案例详解
IO flow: node flow and processing flow are summarized in detail.
Ali was laid off employees, looking for a job n day, headhunters came bad news
First experience of ViewModel
How to match chords
Openresty current limiting
Helix swarm Chinese package is released, and perforce further improves the user experience in China
近一亿美元失窃,Horizon跨链桥被攻击事件分析
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
如何配和弦
《opencv学习笔记》-- 线性滤波:方框滤波、均值滤波、高斯滤波
都在说DevOps,你真正了解它吗?
flutter 报错 No MediaQuery widget ancestor found.
Exploration and practice of eventbridge in the field of SaaS enterprise integration
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
Kubernets pod exists finalizers are always in terminating state
暑期复习,一定要避免踩这些坑!
C language personal address book management system
Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)