Advertisement
Guest User

uri1011

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