repo.or.cz
/
rwork.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
init
[rwork.git]
/
palindrom.rb
blob
08d729290fb5063571378b5eb4136e3fcb829414
1
print "Zadaj interval od:"
\r
2
c1=gets.chomp.to_i
\r
3
print "Do: "
\r
4
c2=gets.chomp.to_i
\r
5
\r
6
while (c1<c2)
\r
7
c1=c1+1
\r
8
if (c1.to_s==c1.to_s.reverse)
\r
9
puts c1
\r
10
end
\r
11
end