🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang
Article #6

Re: I can't figure out how to write this program

#6
From: Christopher J. Chandra
Date: Wed, 22 Nov 1995 00:00
15 lines
1776 bytes
write a program that checks whether a given number is exactly 
divisible by three or not.
>I will need to input a number and get a report back on if it is or
>isn't.
>I can't figure out how I am going to get the program to test this.
>
>A program will not be essential from you, but I would like to know the
>algorithm for the calculation. E-mail would be preferred.

input the number
divide number by 3
check if modulus > 0, 
if it is, it is not divisible by 3
if it is not (else), number is divisible by 3
loop until say number=-1 ???
Technical Details
Message-ID: <49021t$9ot@news.wisenet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <48t8ub$hld@lemon.easynet.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,bb2b906775402ad5
X-Google-Attributes: gid10261c,public
X-Google-Thread: f461d,bb2b906775402ad5
X-Google-Attributes: gidf461d,public
X-Google-Thread: 111659,bb2b906775402ad5
X-Google-Attributes: gid111659,public
X-Google-Thread: 15878d,bb2b906775402ad5
X-Google-Attributes: gid15878d,public
X-Google-Thread: 102601,bb2b906775402ad5
X-Google-Attributes: gid102601,public
X-Google-Thread: 1153ea,bb2b906775402ad5
X-Google-Attributes: gid1153ea,public
X-Google-Thread: 10263e,bb2b906775402ad5
X-Google-Attributes: gid10263e,public
From: "Christopher J. Chandra" <pegasus@hs.wisenet.com>
Subject: Re: I can't figure out how to write this program
Date: 1995/11/22
Message-ID: <49021t$9ot@news.wisenet.com>
X-Deja-AN: 119930859
references: <48t8ub$hld@lemon.easynet.co.uk>
to: robandrews@easynet.co.uk
content-type: text/plain; charset=us-ascii
organization: Tessier Technologies, Plantation Fl.
mime-version: 1.0
newsgroups: comp.lang,pascal,comp.lang.pascal.borland,comp.lang.pascal.misc,ctdl.lang.pascal,maus.lang.tpascal,relcom.comp.lang.pascal,relacom.comp.lang.pascal.misc,slac.lang.pascal
x-mailer: Mozilla 1.22 (Windows; I; 32bit)