C++ Programming
Numerical Methods
- Bisection Method
- Regula Falsi Method
- Newton Raphson Method
- Muller’s Method
- Gauss Elimination Method
- Gauss Jordan Method
- Factorization Method
- Gauss-Seidal Iteration Method
- Power Method
- Least Squares Method
- Group Averages Method
- Moments Method
- Newton’s Forward Interpolation Formula
- Lagrange’s Interpolation Formula
- Newton’s Divided Difference Formula
- Trapezoidal Rule
- Simpson’s Rule
- Euler’s Method
- Backward Euler’s Method
- Runga-Kutta Method
- Milne’s Method
- Solution of Laplace Equation
- Solution of Heat Equation
- Solution of Wave Equation
- Linear Programming – Simplex Method
- LU decomposition Method
- Conjugate Gradient Method
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
cout<< "PROGRAM TO CONVERT OCTAL NUMBER TO DECIMAL [ BY - WWW.BOTTOMSCIENCE.COM ] \n";
cout<<"ENTER THE OCTAL NUMBER \n";
int dec = 0, i = 0, rem, onum;
cin>>onum;
while (onum != 0)
{
rem = onum % 10;
onum /= 10;
dec += rem * pow(8, i);
++i;
}
cout<<"\n THE DECIMAL CONVERSION IS:\n"<<dec;
return 0;
}OUTPUT
/tmp/O6Mdp4eN8Y.o PROGRAM TO CONVERT OCTAL NUMBER TO DECIMAL [ BY - WWW.BOTTOMSCIENCE.COM ] ENTER THE OCTAL NUMBER 101 THE DECIMAL CONVERSION IS: 65
