当前位置:网站首页>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;
}边栏推荐
- Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
- 表单文本框的使用(一) 选择文本
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
- Thread.sleep和TimeUnit.SECONDS.sleep的区别
- Luogu p5536 [xr-3] core city solution
- Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
- Niuke: crossing the river
- MongoDB索引
- Eight sorts
猜你喜欢

Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)

556. The next larger element III

556. 下一个更大元素 III

Showmebug entered Tencent conference, opening the era of professional technical interview

Creation of data table of Doris' learning notes

Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder

Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion

Code writing and playing method of tonybot humanoid robot at fixed distance

Leetcode (4) -- find the median of two positively ordered arrays

NPM install is stuck with various strange errors of node NPY
随机推荐
Code writing and playing method of tonybot humanoid robot at fixed distance
SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
愉悦资本新双币基金近40亿元完成首次关账
556. 下一个更大元素 III
Programming language: the essence of type system
Facebook 如何将 Instagram 从 AWS 搬到自己的服务器
7-4 BCD decryption (10 points)
tonybot 人形機器人 紅外遙控玩法 0630
Understanding of closures
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
How Facebook moves instagram from AWS to its own server
J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
动态获取权限
Find the sum of the elements of each row of the matrix
Eight sorts
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
Find books ()
【7.3】146. LRU缓存机制
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
7-19 check denomination (solve binary linear equation)