Cpp Code for Slope Intercept Form

This cpp programming code is used to find the slope intercept form. You can select the whole cpp code by clicking the select option and can use it. When you click text, the code will be changed to text format. This cpp program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this cpp code and use it to find the slope intercept form.

#include<iostream>
using namespace std;
int main()
{
    float x1,x2,y1,y2,c=0;
    x1=-1;x2=3;y1=0;y2=8;c=0;
    double m;
    m=(y2-y1)/(x2-x1);
    c=y2-(m*x2);
    cout<<"slope (y)="<<m<<"x+"<<c;
}
Other Programming Codes
Online Calculator : Slope Intercept Form
Click on the select code link to copy and paste this free cpp program code for slope intercept form.

english Calculators and Converters


Sitemap