当前位置:网站首页>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;
}
边栏推荐
- Guitar Pro 8win10 latest guitar learning / score / creation
- 2022 financial products that can be invested
- 深度学习 神经网络的优化方法
- MP3是如何诞生的?
- A keepalived high availability accident made me learn it again
- Flutter reports an error no mediaquery widget ancestor found
- Halcon knowledge: NCC_ Model template matching
- Kubernets pod exists finalizers are always in terminating state
- LVGL 8.2 keyboard
- Leecode learning notes - Joseph problem
猜你喜欢
Classify boost libraries by function
【C语言】指针笔试题
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
Weibo and Huya advance into interest communities: different paths for peers
各大主流编程语言性能PK,结果出乎意料
Ffprobe common commands
Guitar Pro 8win10 latest guitar learning / score / creation
Introduction to asynchronous task capability of function calculation - task trigger de duplication
深度学习 网络正则化
现代控制理论入门+理解
随机推荐
Preliminary exploration of flask: WSGI
They are all talking about Devops. Do you really understand it?
MySQL组合索引(多列索引)使用与优化案例详解
Ranking list of databases in July: mongodb and Oracle scores fell the most
LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路
5G电视难成竞争优势,视频资源成中国广电最后武器
selenium 元素交互
Openresty current limiting
Expose Ali's salary and position level
flutter 报错 No MediaQuery widget ancestor found.
找数字
Redis 发布和订阅
毕业季-个人总结
PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
【学习笔记】拟阵
Ffmpeg Visual Studio development (IV): audio decoding
LVLG 8.2 circular scrolling animation of a label
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
%s格式符
深度学习 网络正则化