Tuesday, June 12, 2012

If Else Statement: Dollar Taka Conversion

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to do a program for dollar taka conversion by if else statement. Let's look at the problem.

Problem: Let consider the conversion rate of US Dollar and Taka are 1 Dollar = 80.45 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:



We can also do this program by the following way.


Thank you all..:)


0 comments:

Post a Comment