#include <iostream>
using namespace std;
void checkLines(double slope1, double slope2)
{
if (slope1 = slope2)
{
cout << "\n Your slopes are parallel." << endl;
}
if (slope1*slope2 = -1)
{
cout << "Your slopes are perpendicular." << endl;
}
else
cout << "Your slopes are regularly intersected." << endl;
}
int main()
{
double slope1, slope2;
cout << "\n Please input two slopes of two different lines."<<endl;
cin >> slope1;
cin >> slope2;
checkLines(slope1,slope2);
}
any help is appreciated
Equality check is ==, assignment is =.