Question: If i run the code i get the result ( 0.00 euros=0.00 USD), can you please point it out where and why it is not

 If i run the code i get the result ( 0.00

If i run the code i get the result ( 0.00 euros=0.00 USD), can you please point it out where and why it is not converting the value?

I want to run the code using void function and the currency conversion is from euro to dollar.

#include #include void ConvertToDollars (float euro); int main() { float euroPrice; printf("Enter Euro price: ", euroPrice); scanf("%.2f ", & euroPrice); Convert ToDollars (euroPrice); return 0; void ConvertToDollars (float euro) { float usd= euro * 1.37; printf("%.2f Euros = %.2f USD ", euro, usd); return

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!