Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.63 KB | None | 0 0
  1. 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");}
  2.  else if (a_x==b_x==c_x) {
  3.      if (a_y>b_y) {
  4.               if (c_y>b_y) {printf("Prostredni je bod C.\n");}
  5.                 else if (c_y<a_y) {printf("Prostredni je bod A.\n");}
  6.                  else {printf("Prostredni je bod B.\n");}
  7.      }
  8.  
  9.  else if (a_y==b_y==c_y) {
  10.      if (a_x>b_x) {
  11.               if (c_x>b_x) {printf("Prostredni je bod C.\n");}
  12.                 else if (c_x<a_x) {printf("Prostredni je bod A.\n");}
  13.                  else {printf("Prostredni je bod B.\n");}
  14.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement