Monty374

Distance Part 1 of 2

Sep 19th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. package distance.part.pkg1.of.pkg2;
  2.  
  3. /**
  4. *
  5. * @author Monty
  6. */
  7. public class DistancePart1Of2 {
  8.  
  9. /**
  10. * @param args the command line arguments
  11. */
  12. public static void main(String[] args) {
  13. double d1 = 12.2;
  14. double d2 = 10.6;
  15. double d3 = 5.8;
  16.  
  17. double dt;
  18. dt = d1 + d2 + d3;
  19. System.out.println("Total distance: " + dt);
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment