A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Write a program to convert rupees into dollar.

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Currency;
       
import java.util.Locale;
import java.util.*;
import java.util.Scanner;
/**
 *
 * @author heerababu
 */
public class CConverter 
{
   public static void main(String args[])
   {
    double INR,usd;
    Scanner in=new Scanner(System.in);
    
     System.out.println("Enter INR to convert into USD:");
     INR=in.nextInt();
     usd=INR/60;
     System.out.println("INR="+INR+" is USD="+usd);
    }
}



Sample output:

LEARN TUTORIALS

.

.