Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * A program that will convert inches to centimeters. You can change the number for the inches; I used 9.15 as an example.
- *
- * @Michelle
- * @9/08/16
- */
- public class inchcentimeter
- {
- public static void main (String[] args)
- {
- double inch = 9.15;
- double centimeter = inch * 2.54;
- System.out.print(inch + " inches " + "is equal to " + centimeter + " centimeters.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment