Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Eiffel 0.62 KB | None | 0 0
  1. class TEST
  2.  
  3.     creation
  4.         make
  5.    
  6.     feature
  7.         make is
  8.             local
  9.                 first : INTEGER
  10.                 second : INTEGER
  11.             do
  12.                 from
  13.                     first:=100
  14.                 until
  15.                     first>=999
  16.                 loop
  17.                         from
  18.                             second:=100
  19.                         until
  20.                             second>=999
  21.                         loop
  22.                             -- check if its a palindrome or not. check if its larger than last one calculated
  23.                             -- print("| First: ");
  24.                             --io.put_integer(first);
  25.                             --print(", Second: ");
  26.                             --io.put_integer(second);
  27.                             print(" -- ")
  28.                             io.put_integer(first*second)
  29.                             print(" -- ")
  30.                             second:=second+1;
  31.                         end
  32.                     first:=first+1
  33.                 end
  34.         end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement