Sum of the digits of n is substring of n: Difference between revisions
Content deleted Content added
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
|