Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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
889
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