Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task9 {
- public static void main(String[] args){
- int x1, x2, x3, y1, y2, y3;
- Scanner in = new Scanner(System.in);
- x1 = in.nextInt();
- y1 = in.nextInt();
- x2 = in.nextInt();
- y2 = in.nextInt();
- x3 = in.nextInt();
- y3 = in.nextInt();
- if ((x3 - x1) / (x2 - x1) == (y3 - y1) / (y2 - y1)) System.out.println("Лежат");
- else System.out.println("Не лежат");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment