All pastes #541965 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-05 17:55 UTC
rendered paste body
import java.io.*;
class Input{
	public static final double log10(double y) {
	 double logbeten = Math.log(10);
	 double logbey = Math.log(y);
	 double w = logbey / logbeten;
	 return w;
	}


	public static void main(String[] args) throws IOException {						BufferedReader stdin = 
	        new BufferedReader ( new InputStreamReader( System.in ) );
		String bob;
		System.out.println("Enter first integer:");
		int llama;
		bob = stdin.readLine();
		llama = Integer.parseInt(bob);
		System.out.println(log10(llama));
	}
}