How to write a program for finding out item price when total number of items, total of number of items price and profit gained | Sololearn: Learn to code for FREE!

0

How to write a program for finding out item price when total number of items, total of number of items price and profit gained

I have been stressed thinking about it, this question seems very complicated to find the accurate price of each item when total number of items, total bill and profit is given

c

9/7/2020 7:19:24 AM

Sreenesh

5 Answers

New Answer

+2

Can you share your code here Sreenesh? Maybe the problem be clearer with a code for review. You know how to share your code link right? well, just in case you didn't know 👇 https://www.sololearn.com/post/75089/?ref=app

+1

Lets wait for professionals answer this question

0

Uh i don't have the code it was asked by my mentor

0

I can give u a example such as if total number of items are purchased is 15 (15 items are purchased ) and total amount paid for 15 items is 300(300 was paid for 15 items) and profit gained by seller by selling those 15 items for 300 is 50 Now create a program to find the individual item price

0

Bro if i divide 250 by 15 i get a single answer right? How can i get 15 items price like that?