Conversion

  • Uploaded by: david johnson
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Conversion as PDF for free.

More details

  • Words: 109
  • Pages: 1
Conversion /* * Main.java * * Created on September 27, 2007, 4:03 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package conversion; /** * * @author instructor */ public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { // print out the header System.out.println("Miles"+"\t\t"+"Kilometers"); //define kilometers double kilometers = 0; //start the for loop for (int miles = 1; miles<=10; miles++) { kilometers = miles * 1.609; System.out.println(miles + "\t\t" + kilometers); } } }

Related Documents

Conversion
November 2019 63
Conversion
May 2020 61
Conversion
November 2019 47
Conversion
November 2019 50
Conversion
April 2020 33
Conversion
May 2020 40

More Documents from "Andreas"

Syll_fall_2008
November 2019 17
Acct 101 Syllabus
November 2019 27
Classex For Loop
November 2019 24
Jake S Client And Pet Data
November 2019 20
Mortgage Table
November 2019 18