View Code of Problem 67

#include <stdio.h>
int main()
{
	int x[4], y[4], i, a, b, c, d;
	while (scanf("%d%d", &x[0], &y[0])!=EOF)
	{
		for (i = 1; i < 4; i++)
		{
			scanf("%d%d", &x[i], &y[i]);
		}
		a = x[0] - x[1];
		b = y[0] - y[1];
		c = x[2] - x[3];
		d = y[2] - y[3];
		if (a*d == b*c)
			printf("No\n");
		else
			printf("Yes\n");
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 67