郑州轻工业大学OJ:java1047

import java.util.Scanner;

public class Main {
public static void main(String[] args) {
int m;
int n;
double s;
Scanner in=new Scanner(System.in);
m=in.nextInt();
n=in.nextInt();
for(int i=m;i<=n;i++) {
System.out.printf("%4s", i);
s=Math.log(i);
System.out.printf("%8s", String.format("%.4f", s));
System.out.println();
}
}
}

你可能感兴趣的:(郑州轻工业大学OJ:java1047)