TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Calculate Dollar Amount Conversion Program Using Java
Senthilvelan Sambamoorthy
Aug 13
2016
Code
838
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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