URI Problem 1014 Solution in Java
Problem Details Link
Solution:
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
Post a Comment