URI Problem 1014 Solution in Java

Problem Details Link

Solution:



import java.util.Scanner;

/**
 * @Author : Muhammad Harun-Or-Roshid
 * @E-mail : md.parvez28@gmail.com
 * @Date   : Oct 6, 2016
 * @Time   : 9:16:40 PM
 */
public class Uri1014 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        double Y = sc.nextDouble();
        double Z = X/Y;
        System.out.printf("%.3f km/l\n",Z);
    }
}

Comments

Popular posts from this blog

URI Problem 1094 Solution in Java

URI Problem 1012 Solution in Java

URI Problem 1099 Solution in Java