URI Online Judge [ 1010 ] Simple Calculate Question & solution

1010

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 0;

}

 

Find out more solution in our site :

tarunno71

If you like this post please must share with other people
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Pin on Pinterest
Pinterest
0Share on LinkedIn
Linkedin
Share on Whatsapp
Whatsapp

Leave a Reply

Your email address will not be published. Required fields are marked *