Advertisement
Avdluna

URI 1010

May 16th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5.     int cod1,num1,cod2,num2;
  6.     float valor1,valor2,x;
  7.      
  8.     scanf("%d %d %f \n", &cod1,&num1,&valor1);
  9.     scanf("%d %d %f \n", &cod2,&num2,&valor2);
  10.      
  11.     x=(num1*valor1)+(num2*valor2);
  12.      
  13.     printf("VALOR A PAGAR: R$ %.2f\n",x);
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement