-- Oct 30 In-Class Exercise Thread
1) WindowsDesktop(x) <- Computer(x), NOT Mac(x), NOT Linux(x), x > 100.
2) GreaterThanOne(2).
GreaterThanOne(3).
GreaterThanOne(4).
GreaterThanOne(5).
GreaterThan(5, 4).
GreaterThan(4, 3).
GreaterThan(3, 2).
GreaterThan(2, 1).
GreaterThan(1, 0).
LessThanFive(4).
LessThanFive(3).
LessThanFive(2).
LessThanFive(1).
LessThanFive(0).
OrderPair(x, y) <- GreaterThanOne(x), GreaterThan(x, y), LessThanFive(y).
3) SelectPairs(x, y) <- OrderPair(x, y), y > 3.
(
Edited: 2019-10-30)
1) WindowsDesktop(x) <- Computer(x), NOT Mac(x), NOT Linux(x), x > 100.
2) GreaterThanOne(2).
GreaterThanOne(3).
GreaterThanOne(4).
GreaterThanOne(5).
GreaterThan(5, 4).
GreaterThan(4, 3).
GreaterThan(3, 2).
GreaterThan(2, 1).
GreaterThan(1, 0).
LessThanFive(4).
LessThanFive(3).
LessThanFive(2).
LessThanFive(1).
LessThanFive(0).
OrderPair(x, y) <- GreaterThanOne(x), GreaterThan(x, y), LessThanFive(y).
3) SelectPairs(x, y) <- OrderPair(x, y), y > 3.