import java.io.*; import java.util.*; class CaratsToGrams{ public static void main (String[] args)throws Exception{ //1 carat = 0.2 gram; BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the Carat:"); int carat = Integer.parseInt(bf.readLine()); double gram = carat * 0.2; System.out.println("Gram:" + gram); } }