当前位置:网站首页>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;
}边栏推荐
- Although not necessarily the best, it must be the hardest!
- Doris学习笔记之数据表的创建
- Sword finger offer 28 Symmetric binary tree
- 提高效率 Or 增加成本,开发人员应如何理解结对编程?
- fpga阻塞赋值和非阻塞赋值
- tonybot 人形机器人 红外遥控玩法 0630
- Get permissions dynamically
- Showmebug entered Tencent conference, opening the era of professional technical interview
- Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them
- puzzle(016.4)多米诺效应
猜你喜欢

泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东

Tonybot Humanoïde Robot Infrared Remote play 0630

天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪

Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million

x86汇编语言-从实模式到保护模式 笔记

Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue

Mysql多表查询 #子查询

Tonybot humanoid robot infrared remote control play 0630

Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things

Paper sharing: generating playful palettes from images
随机推荐
Luogu p4047 [jsoi2010] tribal division solution
tonybot 人形机器人 定距移动 代码编写玩法
Time conversion ()
Some concepts about agile
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
puzzle(016.3)千丝万缕
7-16 find the set of integers that meet the given conditions
洛谷P5194 [USACO05DEC]Scales S 题解
Puzzle (016.4) domino effect
7-28 monkeys choose King (Joseph problem)
ConstraintLayout 的使用
7-10 stack of hats (25 points) (C language solution)
7-17 crawling worms (break exercise)
556. The next larger element III
7-2 and then what time (15 minutes)
Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
修改数据库中的记录为什么报这个错
C language,%d% Difference between 2D%2d%02d
Understanding of closures
npm install卡住与node-npy的各种奇怪报错