famouscoder
Wednesday, May 6, 2020
URI 1010 - Simple Calculate
#include<stdio.h>
#include<math.h>
int main()
{
int A,B,X,Y;
double C,Z,Q;
scanf("%d%d%lf",&A,&B,&C);
scanf("%d%d%lf",&X,&Y,&Z);
Q=(B*C)+(Y*Z);
printf("VALOR A PAGAR: R$ %.2lf\n",Q);
return 0;
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment