Skip to content

Commit 4a7ac5a

Browse files
committed
Added triple program
1 parent bd2d1b6 commit 4a7ac5a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

eiffel/triple.e

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class
2+
TRIPLE
3+
4+
create
5+
6+
make
7+
8+
feature
9+
10+
make
11+
do
12+
across 1 |..| 40 as c loop
13+
across 1 |..| c as b loop
14+
across 1 |..| b as a loop
15+
if a * a + b * b = c * c then
16+
io.put_string (a.out + ", " + b.out + ", " + c.out + "%N")
17+
end
18+
end
19+
end
20+
end
21+
end
22+
23+
end

0 commit comments

Comments
 (0)