Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Converter {
  3.  
  4. public static void main(String[] args) {
  5. Scanner reader= new Scanner (System.in);
  6. double pounds;
  7. double kilograms;
  8.  
  9. System.out.print("Enter number of pounds: ");
  10. kilograms = reader.nextDouble();
  11.  
  12. kilograms = (pounds * .454);
  13. System.out.print("The equivalent in kilograms is: ");
  14. System.out.println(kilograms);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement