Skip to content

Instantly share code, notes, and snippets.

@peter279k
Last active May 21, 2017 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peter279k/ef011477da10ded29395f8db7c458ae2 to your computer and use it in GitHub Desktop.
Save peter279k/ef011477da10ded29395f8db7c458ae2 to your computer and use it in GitHub Desktop.
TQC+ JAVA
import java.util.*;
public class JPA01 {
public static void main(String []args) {
System.out.print("Please input: ");
Scanner input = new Scanner(System.in);
double num = input.nextDouble();
System.out.printf("%.6f kg = %.6f\r\n", num, num * 2.20462);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment