#include <stdio.h>
 
int main() {
    int cod1, cod2, num_cod1, num_cod2;
    float valoruni1, valoruni2, total = 0;
    
    scanf("%d",&cod1);
    scanf("%d",&num_cod1);
    scanf("%f",&valoruni1);
    scanf("%d",&cod2);
    scanf("%d",&num_cod2);
    scanf("%f",&valoruni2);
    
    total = (valoruni1 * num_cod1) + (valoruni2 * num_cod2);
    printf("VALOR A PAGAR: R$ %.2f", total);
 
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: