Creative Commons License Foxbond's Repo

/** (c) 2012 Michał (Foxbond) Chraniuk */
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
    
    float x,y, a,b;
    
    cout << "Podaj wspolczynniki a i b"<<endl;
    cin >> a >> b;
    cout << "Podaj wspolrzedne punktu ktory chcesz sprawdzic (x,y)"<<endl;
    cin >> x >> y;
    
    if (a*x+b == y) {
    cout << "Punkt nalezy do prostej"<<endl;
    }else {
    cout << "Punkt nie należy do prostej"<<endl;
          }
    
    
    system("Pause"); return 1; }

> Back