Computer Science, asked by madhavaprashanth1, 6 months ago

write a java program to input in indian rupees and convert it to us dollars and display

Answers

Answered by Oreki
2

import java.util.Scanner;

public class RupeeToDollar {

  public static void main(String[ ] args) {

       System.out.print("Enter Rupees - ");

       float rupees = new Scanner(System.in).nextFloat( );

       System.out.println("Equivalent Dollar value - $" + (rupees * 0.014f));

   }

}

Similar questions