Backward Difference Table – C++ Program

//Backward Difference
#include
#include
using namespace std;
int main()
{
    cout.precision(5);            //set precision
    cout.setf(ios::fixed);    
    int i=0,j=0,n,k=0;
    cout<<"\nEnter the number of values to be entered.\n";
    cin>>n;
    double x[n], y[n][n];            //make an array for x values and an nxn matrix for y and successive difference values, where y[n][0] is for the the y values
    cout<<"\nEnter the values of x\n";
    for (i=0;i>x[i];            //input x values
    cout<<"\nEnter the values of y\n";
    for (i=0;i>y[i][0];            //input y values in the first column of y matrix
    for (j=1;j

c++ proram output

[wpedon id="7041" align="center"]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.