TOPIC

pq esta dando compilation error

Guilherme Henrique asked 7 months ago

include<bits\stdc++.h>

int main() { double c, q, cq, xs, xt, t, r; scanf("%lf %lf", &c, &q); cq=4.00; xs=4.50; xt=5.00; t=2.00; r=1.50;

if(c==1){
printf("Total: R$%.2lf\n",cq*q);

}else if(c==2){ printf("Total: R$%.2lf\n",xsq); }else if(c==3){ printf("Total: R$%.2lf\n",xtq); }else if(c==4){ printf("Total: R$%.2lf\n",tq); }else if(c==5){ printf("Total: R$%.2lf\n",rq); }else

return 0;

}

This topic was solved and cannot recieve new replies.

  • Guilherme Henrique replied 7 months ago

    o erro é esse COMPILATION ERROR

  • Aléxis Toigo replied 7 months ago

    Qual o erro que aparece? Use ctrl+alt+c para postar seu código.