Sum of the digits of n is substring of n: Difference between revisions
Sum of the digits of n is substring of n (view source)
Revision as of 19:22, 19 April 2022
, 2 years ago→{{header|ALGOL W}}: Removed incorrect comment
m (→{{header|ALGOL W}}: Removed incorrect comment) |
|||
Line 327:
<lang algolw>begin % find numbers n, where the sum of the digits is a substring of n %
% returns true if the digits of s contains the digits of t, false otherwise %
logical procedure containsDigits( integer value s, t ) ;
if s = t then true
|