Last active
August 29, 2015 14:13
-
-
Save jukbot/21f2f07a6f91410516bb to your computer and use it in GitHub Desktop.
Convert kilimeter into mile unit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class KiloToMile { | |
public static void main(String[] args) { | |
System.out.println("Miles Kilometers"); | |
System.out.println("----------------------------------------------"); | |
int kilo = 0; | |
while(kilo < 100) { | |
kilo++; | |
float result = kilo*1.609344f; | |
System.out.println( kilo + " " + result); | |
} | |
} | |
} | |
// End line of code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment