Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Converter {
- public static void main(String[] args) {
- Scanner reader= new Scanner (System.in);
- double pounds;
- double kilograms;
- System.out.print("Enter number of pounds: ");
- kilograms = reader.nextDouble();
- kilograms = (pounds * .454);
- System.out.print("The equivalent in kilograms is: ");
- System.out.println(kilograms);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement