Before seeing this uri 1010 solution make sure that you have tried enough(at least 30 minutes).Please do not copy this code. I request you to understand the logic and then write your code. If you do not feel your code then you are not on the right path. Happy coding.
Solution of uri 1010 :
/*Read By the name of ALLAH*/
scanf(“%d %d %lf”,&a,&b,&c);
scanf(“%d %d %lf”,&d,&e,&f);
printf(“VALOR A PAGAR: R$ %.2lf\n”,(b*c)+(e*f));
If you can not understand this solution or if you need any other help please feel free to ask me on comment . I will try my level best to help you .
If you find any error please let me know.As a human being, i can also make mistake. Feel free to share your ideas.