Created
June 5, 2014 21:07
-
-
Save cdduarte/03fa7b8940b34ad2bea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; // allows use of Scanner class in java.util package | |
public class TestDBL | |
{ | |
public static void main( String[] args ) | |
{ | |
Scanner sysIn = new Scanner(System.in); | |
double x; | |
System.out.print( "Enter an floating point number: " ); | |
x = sysIn.nextDouble(); | |
System.out.printf( "%.16f\n", x ); | |
sysIn.close(); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment