Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zad3() {
- float x1,x2,y1,y2,x3,y3;
- printf("\n\nPodaj 6 liczb zmiennoprzecinkowych. \nPAMIETAJ ! \nJestli chcesz podac cala liczbe np 1 musisz podac ja w postaci '1.0'\n");
- scanf("%f%f%f%f%f%f",&x1,&y1,&x2,&y2,&x3,&y3);
- float wynik;
- wynik = ((x1*y2)+(y1*x3)+(x2*y3))-((x3-y1)+(y3-x1)+(x2*y1));
- if(wynik == 0) {
- printf("tutaj powinno wypisywac rownanie prostej");
- }else {
- printf("\nNiewspoliniowe.");
- }
- CleanOrQuit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement