code problem
BevieRosie (0)

how to convert dollar rate to peso rate? a user must input a dollar or number or amount and the result should in peso. im kinda confuse if i use if, loop or while loop.

You are viewing a single comment. View All
Zavexeon (435)

That's just a simple conversion.

float dollar = /*your dollar amount here*/;
float peso = dollar * 19.40;

std::cout << peso;