Menu
Question Index
...

Write code to convert a given Indian Rupees to US Dollar Amount. Assume that the conversion rate is 1 USD = 51.04 INR.



class CurrencyConversion
{
    public static void main(String s[])
    {
        System.out.println(" 5000 INR is same as " + convertToUSD(5000) + " USD");

    }


    public static double convertToUSD(double rupees)
    {
        double result = 0;
        return result;
    }

}

Doubts

Problems

Topic: Basic Arithmetic Operators In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App