Re: a plain English "FizzBuZZ" idiom

Liste des GroupesRevenir à cl misc 
Sujet : Re: a plain English "FizzBuZZ" idiom
De : mikegonta (at) *nospam* gmail.com (Mike Gonta)
Groupes : comp.lang.misc
Date : 21. Mar 2024, 12:22:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uth1ov$24qh0$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 2024-03-20 9:26 p.m., Bruce Axtens wrote:
On 2/03/2024 4:06 am, Mike Gonta wrote:
     if the counter is divisible by 3 then
 The counter is always divisible by 3. It is not always *evenly* divisible by 3. Maybe you want to make that more obvious.
 -Bruce
 
Thanks Bruce, you're absolutely right.
[
to decide if a number is evenly divisible by another number is:
   divide the number by the other number returning a quotient number and a remainder number;
   return true if the remainder is null;
]
Of course, in plain English idiom, the opposite (in this case) return false default statement should be obvious (as it is to the-idiom) and need not be written.
there is no "end" in idiom, for idiom is an end in itself;
--
Mike Gonta
look and see - many look but few see
https://mikegonta.com

Date Sujet#  Auteur
21 Mar 24 * Re: a plain English "FizzBuZZ" idiom6Bruce Axtens
21 Mar 24 +- Re: a plain English "FizzBuZZ" idiom1Mike Gonta
22 Mar 24 +* Re: a plain English "FizzBuZZ" idiom3Tim Rentsch
22 Mar 24 i`* Re: a plain English "FizzBuZZ" idiom2Mike Gonta
23 Mar 24 i `- Re: a plain English "FizzBuZZ" idiom1Tim Rentsch
29 Mar 24 `- Re: a plain English "FizzBuZZ" idiom1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal