Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int code1,code2,num1,num2;
- float price1,price2,val;
- scanf("%d %d %f", &code1, &num1, &price1);
- scanf(" %d %d %f",&code2,&num2,&price2);
- val=(num1*price1)+(num2*price2);
- printf("VALOR A PAGAR: R$ %.2f\n",val);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement