Solution in C #include<stdio.h> int main() { int x,y; float z,sum; scanf("%d",&x); scanf("%d",&y); if(x==1) { z=4; } if(x==2) { z=4.50; } if(x==3) { z=5; } if(x==4) { z=2; } if(x==5) { z=1.50; } sum=(z*y); printf("Total: R$ %.2f\n",sum); } ~~~~~~Happy Coding~~~~~~
No comments