Advertisement
OlegB

H_W_02

Mar 1st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. package com.company;
  2.  
  3. /**
  4.  * Created by Oleg on 28.02.2017.
  5.  */
  6. public class Planets {
  7.     public static void main(String[] args) {
  8.         int Mercury = 91691000;
  9.         int Venus = 41400000;
  10.         int Mars = 78340000;
  11.         int Jupiter = 628730000;
  12.         int Saturn = 1275000000;
  13.         System.out.println("Distance from Mercury to Earth = " + Mercury + " km");
  14.         System.out.println("Distance from Venus to Earth = " + Venus + " km");
  15.         System.out.println("Distance from Mars to Earth = " + Mars + " km");
  16.         System.out.println("Distance from Jupiter to Earth = " + Jupiter + " km");
  17.         System.out.println("Distance from Saturn to Earth = " + Saturn + " km");
  18.  
  19.  
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement