0
I dont know whats wrong with case #5
2 Réponses
+ 1
Use that in ur code
if((2*pessos/100)<=dollar) printf("Pesos");
else printf("Dollars");
And that's it✌
+ 1
peso = 4000
dollar = 100
In your code:
peso gets 8000
and dollar gets 10000
But you need to convert pesos in dollars.
1 peso = 0.02 dollar
4000 peso = 80 dollar
(4000 * 0.02 = 80)
After that compare peso with dollar:
peso < dollar -> print peso
else print dollar