lab3_163

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int k,y,x,b,R; cout << "Input k,b and R values:"<<endl; cin>>k>>b>>R; //computing if(k!=0) { x=(R-b)/k; y=k*x+b; if(x>0 && y>0) cout<<"the intersection point is in the 1s quandrant"<<endl; else if(x>0 && y<0) cout<<"the intersection point is in the 4nd quandrant"<<endl; else if(x<0 && y>0) cout<<"the intersection point is in the 2rd quandrant"<<endl; else cout<<"the intersection point is in the 3th quandrant"<<endl; }else { y=b; if(y==R) cout<<"The line touch the circle."<<endl; else cout<<"there's no intersection point."<<endl; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines