URI Online Judge [ 1010 ] Simple Calculate Question & solution

Solution in C:-   #include<stdio.h> int main() { int pc1,pc2,pn1,pn2; float pp1,pp2,value; scanf(“%d%d%f%d%d%f”,&pc1,&pn1,&pp1,&pc2,&pn2,&pp2); value=(pn1*pp1)+(pn2*pp2); printf(“VALOR A PAGAR: R$ %.2f\n”,value); return

Read more