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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
SOFARI HASSANE
NA
237
21.9k
Currency conversion code issue
Feb 9 2019 7:29 AM
Hi all, i am looking to convert dollar to local currency of my country (Cfa), i use combobox, the result i get example on the catch is wrong
here is my code:
private
void
button2_Click(
object
sender, EventArgs e)
{
int
selectIndex = dev1.SelectedIndex;
int
money =
int
.Parse(mnt1.Text);
int
rate =
int
.Parse(mnt2.Text);
if
(dev1.SelectedItem.ToString()==
"Dollar"
&& dev2.SelectedItem.ToString()==
"Cfa"
)
{
int
conversion = money * rate;
int
convStr = Convert.ToInt32(conversion);
total.Text = convStr.ToString();
}
thank you for helping me see a little clearer
Reply
Answers (
2
)
What is string-interning?
[C# Winforms] File Transfer From Phones to PC using Bluetoot