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)
Welcome to " way2cplusplus.blogspot.in " Objective of this blog is to implement various Computer Science Engineering Lab problems into C++ programming language. These are basically most common Lab Exercise problems based on the curriculum of engineering colleges throughout the Nation. These lab exercises are also relevant to Data structure. Simply C++ programming zone...
Showing posts with label Mathematical operation. Show all posts
Showing posts with label Mathematical operation. Show all posts
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.
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) " )
Subscribe to:
Posts (Atom)



