From: p.obry@der.edf.fr
Subject: Re: histrionics
Date: 1999/09/22
Date: 1999-09-22T06:50:27+00:00 [thread overview]
Message-ID: <7s9u7j$dpm$1@clnews.edf.fr> (raw)
In-Reply-To: 37E81661.6DCA23E4@mitre.org
Just to fix some syntax error in Robert example:
with Ada.Integer_Text_IO;
procedure Primes (N:Positive) is
Total: Natural;
begin
for I in 1..N loop
Total := 0;
for J in 1..I loop
if I mod J = 0 then
Total := Total + 1;
end if;
exit when Total > 2;
end loop;
if Total = 2 then
Ada.Integer_Text_IO.Put(I);
end if;
end loop;
end Primes;
Pascal.
next prev parent reply other threads:[~1999-09-22 0:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-09 0:00 histrionics G
1999-09-08 0:00 ` histrionics Preben Randhol
1999-09-09 0:00 ` histrionics G
1999-09-09 0:00 ` histrionics Nick Roberts
1999-09-09 0:00 ` histrionics Robert Dewar
1999-09-10 0:00 ` histrionics Vladimir Olensky
1999-09-10 0:00 ` histrionics Robert Dewar
1999-09-10 0:00 ` histrionics Ted Dennison
1999-09-11 0:00 ` histrionics Bob Collins
1999-09-12 0:00 ` histrionics Vladimir Olensky
1999-09-13 0:00 ` histrionics Ted Dennison
1999-09-11 0:00 ` histrionics Vladimir Olensky
1999-09-11 0:00 ` histrionics Robert Dewar
1999-09-11 0:00 ` histrionics Vladimir Olensky
1999-09-13 0:00 ` histrionics Robert Dewar
1999-09-11 0:00 ` histrionics Robert Dewar
1999-09-11 0:00 ` histrionics Vladimir Olensky
1999-09-14 0:00 ` histrionics Robert I. Eachus
[not found] ` <7s2l7b$kmr$1@nnrp1.deja.com>
[not found] ` <37E81661.6DCA23E4@mitre.org>
1999-09-22 0:00 ` histrionics Ehud Lamm
[not found] ` <7saju5$6h6$1@nnrp1.deja.com>
1999-09-22 0:00 ` histrionics Robert I. Eachus
1999-09-22 0:00 ` p.obry [this message]
1999-09-23 0:00 ` histrionics Ehud Lamm
1999-09-23 0:00 ` histrionics Ehud Lamm
1999-09-23 0:00 ` Sums of cubes (was Re: histrionics) Robert I. Eachus
1999-09-24 0:00 ` Wes Groleau
1999-09-24 0:00 ` Robert I. Eachus
1999-09-27 0:00 ` Wes Groleau
1999-09-24 0:00 ` Wes Groleau
1999-09-25 0:00 ` Robert Dewar
1999-09-24 0:00 ` Robert Dewar
1999-09-24 0:00 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox