Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,23 +1,23 @@
|
|||
function is_gapful(n)
|
||||
m = n
|
||||
l = n mod 10
|
||||
while (m >= 10)
|
||||
m = int(m / 10)
|
||||
end while
|
||||
return (m * 10) + l
|
||||
m = n
|
||||
l = n mod 10
|
||||
while (m >= 10)
|
||||
m = int(m / 10)
|
||||
end while
|
||||
return (m * 10) + l
|
||||
end function
|
||||
|
||||
subroutine muestra_gapful(n, gaps)
|
||||
inc = 0
|
||||
print "First "; gaps; " gapful numbers >= "; n
|
||||
while inc < gaps
|
||||
if n mod is_gapful(n) = 0 then
|
||||
print " " ; n ;
|
||||
inc = inc + 1
|
||||
end if
|
||||
n = n + 1
|
||||
end while
|
||||
print chr(10)
|
||||
inc = 0
|
||||
print "First "; gaps; " gapful numbers >= "; n
|
||||
while inc < gaps
|
||||
if n mod is_gapful(n) = 0 then
|
||||
print " " ; n ;
|
||||
inc = inc + 1
|
||||
end if
|
||||
n = n + 1
|
||||
end while
|
||||
print chr(10)
|
||||
end subroutine
|
||||
|
||||
call muestra_gapful(100, 30)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue