URI Online Judge [ 1005 ] Average 1 Question & Solution

  Solution In C :- #include<stdio.h> int main(){ float A,B,m; scanf(“%f%f”,&A,&B); m=((A*3.5)+(B*7.5))/(3.5+7.5); printf(“MEDIA = %.5f\n”,m); return 0; } Find out

Read more

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