URI Problem 1010 (Simple Calculate) solution( Bangla ) | C language

** Please make sure that you have tried enough **

#include<stdio.h>
int main()
{
    float price1,price2,total;
    int code1,code2,unit1,unit2;
    scanf("%d %d %f",&code1,&unit1,&price1);
    scanf("%d %d %f",&code2,&unit2,&price2);
    total =  price1*unit1+price2*unit2;
    printf("VALOR A PAGAR: R$ %0.2f\n",total);
    return 0;
}

 

You can find video explanation of this solution in our YouTube channel. You will find the YouTube channel link in the top right corner.
Like our Facebook page and SUBSCRIBE to our YouTube channel.
Stay connected.

If you face any problem, let me know in the comment section.

Leave a Comment