Assalamu Alaikum. hope you all are well by the grace of Almighty ALLAH. Today we learn Euro, Dollar & Taka conversion by switch case. Let's look at the problem.
Problem: Let Consider The conversion rate of US Dollar, Euro & Taka are 1 Dollar = 80.45 Taka and 1 Euro = 125.34 Taka. Write a program that first takes the choice from the user what conversion he/she wants. Then an amount is given as input. Convert the amount and output the result according to the given choice.
Solution:
Given, 1 dollar = 80.45 taka & 1 Euro = 125.34 taka.
So, 1 Euro = 1.55 dollar.
Now. let's look at the program.
Problem: Let Consider The conversion rate of US Dollar, Euro & Taka are 1 Dollar = 80.45 Taka and 1 Euro = 125.34 Taka. Write a program that first takes the choice from the user what conversion he/she wants. Then an amount is given as input. Convert the amount and output the result according to the given choice.
Solution:
Given, 1 dollar = 80.45 taka & 1 Euro = 125.34 taka.
So, 1 Euro = 1.55 dollar.
Now. let's look at the program.
Thank you all.. :-)
0 comments:
Post a Comment