TOPIC

Wrong answer (10%) Obrigado!

Matheus Ribeiro asked 6 months ago

include include

using namespace std; int main(){

string n;
double s, v, m;

cin>>n;
cin>>s;
cin>>v;

m=(v*0.15)+s;

cout<<fixed<<setprecision(2);
cout<<"TOTAL = "<<m<<"\n";

return 0;

}

This topic was solved and cannot recieve new replies.

  • Aléxis Toigo replied 6 months ago

    Falta colocar o "R$" após o total:

    cout<<"TOTAL = R$ " <<  m << "\n";