当前位置:网站首页>Zzuli:1047 logarithmic table
Zzuli:1047 logarithmic table
2022-07-03 14:34:00 【Snake_____】
Title Description
Enter two positive integers m and n, Output m To n The natural logarithm of each integer between .
Input
The input includes two integers m and n(m<=n), Separated by a space .
Output
Each line outputs an integer and its logarithm , The whole number takes up 4 Column , Logarithmic proportion 8 Column , Right alignment , Logarithmic reservation 4 Decimal place .
The sample input Copy
2 4
Sample output Copy
2 0.6931 3 1.0986 4 1.3863
#include <stdio.h>
#include <math.h>
int main()
{
int n,m,i;
scanf("%d%d",&m,&n);
for(i=m;i<=n;i++)
{
printf("%4d%8.4f\n",i,log(i));
}
return 0;
}边栏推荐
- Time conversion ()
- Pyqt interface production (login + jump page)
- Add ZABBIX calculation type itemcalculated items
- Statistical capital consonants
- 7-16 find the set of integers that meet the given conditions
- Luogu p4047 [jsoi2010] tribal division solution
- Sword finger offer 28 Symmetric binary tree
- Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them
- Convert string to decimal integer
- 如何查询淘宝天猫的宝贝类目
猜你喜欢

dllexport和dllimport

Tonybot Humanoïde Robot Infrared Remote play 0630

tonybot 人形机器人 首次开机 0630

Happy capital new dual currency fund nearly 4billion yuan completed its first account closing

pyQt界面制作(登录+跳转页面)

Niuke: crossing the river
![[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?](/img/f6/fe61c84f289f0e74a45946dac687a6.jpg)
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?

中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿

剑指 Offer 28. 对称的二叉树

Understand the application scenario and implementation mechanism of differential segment
随机推荐
x86汇编语言-从实模式到保护模式 笔记
洛谷P3065 [USACO12DEC]First! G 题解
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
DDK for XP
Common commands for getting started with mongodb database
The mail function of LNMP environment cannot send mail
全文检索引擎Solr系列—–全文检索基本原理
如何查询淘宝天猫的宝贝类目
洛谷P5536 【XR-3】核心城市 题解
数学常数表 by q779
X86 assembly language - Notes from real mode to protected mode
Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
Sword finger offer 28 Symmetric binary tree
Eight sorts
retrofit
tonybot 人形机器人 首次开机 0630
556. The next larger element III
Facebook 如何将 Instagram 从 AWS 搬到自己的服务器
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them