Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

miles to km converter programm in java

import java.util.Scanner;



public class Rohit{
    public static void main (String[]args){

      Scanner sc = new Scanner(System.in);
      System.out.println("Enter the Distance in Miles: ");
      float miles = sc.nextFloat();

      float km = (float)(1.609344 * miles);  
      System.out.println(km);

    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: share location in android programmatically 
Java :: kotlin edittext default value 
Java :: change fab image programatically 
Java :: multiple representations of the same entity are being merged 
Java :: how to sort the arraylist without changing the original arraylist 
Java :: java swing on close 
Java :: permutation and combination program in java 
Java :: bool in java 
Java :: string compareto vs equals java 
Java :: java stream 
Java :: while loops java 
Java :: java list of a class has a string that is equal to 
Java :: How to change integers into float in java 
Java :: finding the ascii value of a character in java 
Java :: flutter doctor Unable to find bundled Java version. 
Java :: how to print array in one line in java 
Java :: binary search algorithm java 
Java :: pyramid pattern java 
Java :: int conversion to float 
Java :: java compile 
Java :: binary tree traversal 
Java :: How to solve the knapsack problem, in Java? 
Java :: enhanced for loop java 
Java :: java inheritance example 
Java :: generics in java 
Java :: java heap example 
Java :: combobox index out of bound javafx 
Java :: java stream dristinct 
Java :: empty map entry java 
Java :: exponet 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =