Ad Code

Responsive Advertisement

1010 - Simple Calculate

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function



#include<stdio.h>


int main()


{


    int code1, unit1, code2, unit2;





    double price1, price2, value1, value2;





    scanf("%d %d %lf", &code1, &unit1, &price1);





    scanf("%d %d %lf", &code2, &unit2, &price2);





    value1= unit1*price1;





    value2= unit2*price2;





    printf("VALOR A PAGAR: R$ %.2lf\n", value1+value2);





    return 0;


}


Post a Comment

0 Comments