Category Archives: C++ Programs

Multiplication of two numbers in C++

In this article, we have discussed various methods to multiply two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 30 Method-2 : With user Inputs Output: Output depends on user inputs, that will be multiplication of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Subtraction of two numbers in C++

In this article, we have discussed various methods to subtract two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: -1 Method-2 : With user Inputs Output: Output depends on user inputs, that will be subtraction of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Addition of two numbers in C++

In this article, we have discussed various methods to add two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 11 Method-2 : With user Inputs Output: Output depends on user inputs, that will be sum of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »