C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Calculate Dollar Amount Conversion Program Using Java
WhatsApp
Senthilvelan Sambamoorthy
Aug 13
2016
952
0
0
ssva28.rar
// 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
Up Next
Calculate Dollar Amount Conversion Program Using Java