* A new hand's question @ 2000-05-07 0:00 �����Y�۵M�I 2000-05-07 0:00 ` Preben Randhol 0 siblings, 1 reply; 4+ messages in thread From: �����Y�۵M�I @ 2000-05-07 0:00 UTC (permalink / raw) 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: ...... Thank you very much ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A new hand's question 2000-05-07 0:00 A new hand's question �����Y�۵M�I @ 2000-05-07 0:00 ` Preben Randhol 2000-05-07 0:00 ` �����Y�۵M�I 0 siblings, 1 reply; 4+ messages in thread From: Preben Randhol @ 2000-05-07 0:00 UTC (permalink / raw) 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] -- <http://www.pvv.org/~randhol/> "Det eneste trygge stedet i verden er inne i en fortelling." -- Athol Fugard ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A new hand's question 2000-05-07 0:00 ` Preben Randhol @ 2000-05-07 0:00 ` �����Y�۵M�I 2000-05-07 0:00 ` Robert Dewar 0 siblings, 1 reply; 4+ messages in thread From: �����Y�۵M�I @ 2000-05-07 0:00 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1022 bytes --] Thank you for your help. I got the answer!! "Preben Randhol" <randhol+nospam@pvv.org> ���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] -- <http://www.pvv.org/~randhol/> > "Det eneste trygge stedet i verden er inne i en fortelling." > -- Athol Fugard ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: A new hand's question 2000-05-07 0:00 ` �����Y�۵M�I @ 2000-05-07 0:00 ` Robert Dewar 0 siblings, 0 replies; 4+ messages in thread From: Robert Dewar @ 2000-05-07 0:00 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 468 bytes --] In article <8f3doj$npf$1@netnews2.csie.nctu.edu.tw>, "��"���Y���M"I" <jichen@csie.nctu.edu.tw> wrote: > Thank you for your help. > I got the answer!! Hopefully that means you went to the cited source material and figured it out for yourself. If so, good for you! That's what learning is about :-) By the way, you miht figure out how to get a more meaningful header on your reply address! Sent via Deja.com http://www.deja.com/ Before you buy. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-05-07 0:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2000-05-07 0:00 A new hand's question �����Y�۵M�I 2000-05-07 0:00 ` Preben Randhol 2000-05-07 0:00 ` �����Y�۵M�I 2000-05-07 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox