Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((a_x==b_x)&&(a_y==b_y) || (a_x==c_x)&&(a_y==c_y) || (b_x==c_x)&&(b_y==c_y) ) {printf("Nektere body splyvaji - zadny neni uprostred.\n");}
- else if (a_x==b_x==c_x) {
- if (a_y>b_y) {
- if (c_y>b_y) {printf("Prostredni je bod C.\n");}
- else if (c_y<a_y) {printf("Prostredni je bod A.\n");}
- else {printf("Prostredni je bod B.\n");}
- }
- else if (a_y==b_y==c_y) {
- if (a_x>b_x) {
- if (c_x>b_x) {printf("Prostredni je bod C.\n");}
- else if (c_x<a_x) {printf("Prostredni je bod A.\n");}
- else {printf("Prostredni je bod B.\n");}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement