Header Ads

Header ADS

URI 1010 - Simple Calculate solve

URI  1010 - Simple Calculate solve

#include <stdio.h>

int main()
{
 int a, b;
 double c,price ;

 scanf("%d %d %lf", &a, &b, &c);
 price = b * c;
 scanf("%d %d %lf", &a, &b, &c);
 price += b * c;
 printf("VALOR A PAGAR: R$ %.2lf\n", price);

 return 0;
}

No comments

Powered by Blogger.