The newspaper Agency
Each Sunday, a newspaper agency sells w copies of a special edition newspaper for Rs.x per copy. The cost to the agency of each newspaper is Rs.y. The agency pays a fixed cost for storage, delivery and so on of Rs.100 per Sunday. The newspaper agency wants to calculate the profit which it obtains only on Sundays. Can you please help them out by writing a program to compute the profit if w, x, and y are given.
INPUT FORMAT:
Input consists of 3 integers:
w, x, and y.
w is the number of copies sold, x is the cost per copy and y is the cost the agency spends per copy.
OUTPUT FORMAT:
The output consists of a single integer which corresponds to the profit obtained by the newspaper agency.
SAMPLE INPUT:
1000
2
1
SAMPLE OUTPUT:
900
Answers
Answered by
0
Answer:
sample out puthaffkksnebd
Answered by
8
Answer:
#include<iostream>
int main()
{
int n,c,s,o;
std :: cin >> n >> c >> s >>o;
std :: cout << ((n * c) - (n * s)) - 100;
}
Explanation:
Its a formula just to calculate profit.
and if your question is why " - 100 " in the formula. So, its because its the expense of agency/day (for cost of storage & delivery)
_______________
Hope this will help you!
Thanks.
Similar questions
Math,
5 months ago
Math,
5 months ago
Hindi,
5 months ago
Computer Science,
11 months ago
Environmental Sciences,
11 months ago
Math,
1 year ago