Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package distance;
- /**
- *
- * @author FrogeL0rd1337
- */
- public class Distance {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- double first = 12.2;
- double second = 10.6;
- double third = 5.8;
- double total;
- total = first + second + third;
- System.out.printf("The total distance ran was " + total + ".");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement