12th Apr 2020, 11:32 PM
V=IR
V=IR - avatar
2 Respostas
+ 1
Use that in ur code if((2*pessos/100)<=dollar) printf("Pesos"); else printf("Dollars"); And that's it✌
13th Apr 2020, 3:06 AM
Amine Laaboudi
Amine Laaboudi - avatar
+ 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
13th Apr 2020, 12:03 AM
Denise Roßberg
Denise Roßberg - avatar