From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,FROM_ILLEGAL_CHARS, INVALID_MSGID,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,233def024614b352 X-Google-Attributes: gid103376,public From: "�����Y�۵M�I" Subject: Re: A new hand's question Date: 2000/05/07 Message-ID: <8f3doj$npf$1@netnews2.csie.nctu.edu.tw>#1/1 X-Deja-AN: 620223947 References: <8f3992$ir1$1@netnews2.csie.nctu.edu.tw> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: ta@csie.nctu.edu.tw X-Trace: netnews2.csie.nctu.edu.tw 957692499 24367 140.113.141.98 (7 May 2000 09:41:39 GMT) Organization: Computer Science & Information Engineering NCTU X-MSMail-Priority: Normal NNTP-Posting-Date: 7 May 2000 09:41:39 GMT Newsgroups: comp.lang.ada Date: 2000-05-07T09:41:39+00:00 List-Id: Thank you for your help. I got the answer!! "Preben Randhol" ���g��l�� news:slrn8habe9.8mc.randhol+nospam@kiuk0156.chembio.ntnu.no... > On Sun, 7 May 2000 16:22:03 +0800, �����Y�۵M�I wrote: > >Hi, > > How can I rewite the following code segment using a loop structure in Ada: > > > > k := (j+13)/27 > >loop: > > if k>10 then goto out > > k :=k+1 > > i := 3*k-1 > > goto loop > >out: ...... > > By reading: > > http://adahome.com/Tutorials/Lovelace/s5s3.htm > > For furter reading: > > http://adahome.com/Tutorials/Lovelace/lovelace.html > > I'd also like to recommend the book "Ada 95 Problem Solving and Program > Design" : > > http://www.seas.gwu.edu/~mfeldman/cs1book/ > > for a nice introduction to the Ada 95 language. > > -- > Preben Randhol -- [randhol@pvv.org] -- > "Det eneste trygge stedet i verden er inne i en fortelling." > -- Athol Fugard