Sum of the digits of n is substring of n: Difference between revisions

Content deleted Content added
Galileo (talk | contribs)
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 %
% s and t are assumed to be blank-padded, left-justified numeric strings %
logical procedure containsDigits( integer value s, t ) ;
if s = t then true