Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label Mathematical operation. Show all posts
Showing posts with label Mathematical operation. Show all posts

Calculate nPr & nCr

C++ Program to calculate nPr & nCr. This program calculates the value of nCr and nPr. The values of n and r are input by user. We have used 3 functions : 'npr' for calculating nPr , 'ncr' for calculating nCr , factorial to calculate factorial. nPr is calculated by the formula nPr = factorial(n)/factorial(n-r)

Maths operation exp, log, log10, sqrt, sin, cos, tan.....

 Mathematical operation program for the determination of values of:
1.exp     2.log       3.log10
4.sqrt    5.sin        6.cos
7.tan

note: use of Switch case for easy coding and choice selection between several option.

Print Roots Of Quadratic Equation...



Program to Print the Roots of a Quadratic equation.
first we find the delta as  delta=b*b-4*a*c; as done in program , then three condition are checked like:
 1 Real & Unequal
 2 Real & Equal
 3 Complex & Imaginary

(note- use of " math.h "header file for the solution of the square root of delta "sqrt(delta) " )

Mathematical Operations (+,-,*,/)


All mathematical operation can be solved in one place use of switch case for user friendly solution 
user can Add,Sub, Div and multiply
Blogger Widgets

Find Us On Google, Just type - way2cplusplus -

If you have any questions on implementing or understanding this C++ Program , shoot me a comment and I'll be glad to help! :) :)