- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Program to find the Break Even Point in C++

In this problem, we are given the three variables that denote total monthly expenditure (E), selling price (S) of the product, overhead maintenance (M) on each product. Our task is to create a *program to
find the Break Even Point in C++*.

**Break-Even Point** is the total number of products that are required to be sold so that there should not be any loss or profit for the seller.

**Problem Description** − We need to find the total no. of products to be sold to make sure there is no loss.

**Let’s take an example to understand the problem,**

## Input

E = 2400, S = 150, M = 30

## Output

20

## Explanation

Profit on each product is S - M = 150 - 30 = 120

Total number of products to be sold,

N = E/(S-M) = 2400 / 120 = 20.

## Solution Approach

To make sure that there is no loss. The seller needs to sell to n products such that the profit on each product is equal to the total expenditure.

So, the number of product sold = Expenditure / (selling price - maintenance overhead)

**Program to illustrate the working of our solution,**

## Example

#include <iostream> #include <math.h> using namespace std; int main() { int E = 2400, S = 150, M = 30; cout<<"No. of products to be sold is "<< ceil(E/ (S - M)); return 0; }

## Output

No. of products to be sold is 20

- Related Questions & Answers
- Python program to find the Decreasing point in a List
- Program to find the mid-point of a line in C++
- Program to find the highest altitude of a point in Python
- C++ Program to find out the moves to read a point from another point in a 2D plane
- Program to find Nth Even Fibonacci Number in C++
- 8085 program to find the sum of series of even numbers
- Program to find GCD of floating point numbers in C++
- C++ program to find first collision point of two series
- C++ program to find the best fit rectangle that covers a given point
- Program to find only even indexed elements from list in Python
- Program to find number of ways we can reach from top left point to bottom right point in Python
- Program to find value of find(x, y) is even or odd in Python
- PHP program to find the average of the first n natural numbers that are even
- 8086 program to find sum of Even numbers in a given series
- To find sum of even factors of a number in C++ Program?