Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created April 10, 2020 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alakhator/d18836f950b7b671112dd6316095f340 to your computer and use it in GitHub Desktop.
Save Alakhator/d18836f950b7b671112dd6316095f340 to your computer and use it in GitHub Desktop.
double test1,test2; //enter test x1 and x2
cin>>test1>>test2;
double pred=b0+b1*test1+b2*test2; //make prediction
cout<<"The value predicted by the model= "<<pred<<endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment