// dollar conversion
import java.io.*;
class ssva28
{
public static void main(String arg[]) throws IOException
{
double n,i;
BufferedReader inp = new BufferedReader(new InputStreamReader(System.in));
System.out.print("\n\nEnter the Dollar value($): ");
n=Double.parseDouble(inp.readLine());
System.out.print("\n\nEnter the Current Equivalent Rupee value(Rs.): ");
i=Double.parseDouble(inp.readLine());
System.out.println("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("\n\tDollar($)\t\tEquivalent Rs. value\t\tRupee(Rs.)");
System.out.println("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("\n\t "+n+"\t\t\t "+i+"\t\t "+(n*i));
}
}Java
Calculate Dollar Amount Conversion Program Using Java

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
