uri online judge problem 1010 solution c programming
UIR online judge problem 1010 solution c
programming
code :
#include<stdio.h>
int main()
{
int productnumber,productunit,productnumber2,productunit2;
float productprice,totaltaka, productprice2,totaltaka2;
scanf("%d %d %f",&productnumber,&productunit,&productprice);
scanf("%d %d %f",&productnumber2,&productunit2,&productprice2);
totaltaka=(productunit*productprice)+(productunit2*productprice2);
printf("VALOR A PAGAR: R$ %.2f\n",totaltaka);
return 0;
}
programming
code :
#include<stdio.h>
int main()
{
int productnumber,productunit,productnumber2,productunit2;
float productprice,totaltaka, productprice2,totaltaka2;
scanf("%d %d %f",&productnumber,&productunit,&productprice);
scanf("%d %d %f",&productnumber2,&productunit2,&productprice2);
totaltaka=(productunit*productprice)+(productunit2*productprice2);
printf("VALOR A PAGAR: R$ %.2f\n",totaltaka);
return 0;
}
output :

No comments