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