<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'About Repeat.. until and While.. do' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'About Repeat.. until and While.. do' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Mon, 17 Jun 2013 22:52:31 -0700</pubDate>
    <lastBuildDate>Mon, 17 Jun 2013 22:52:31 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>About Repeat.. until and While.. do</title>
      <link>http://www.programmersheaven.com/mb/pasprog/103649/103649/about-repeat-until-and-while-do/</link>
      <description>Hi, am new here.. anyway, I was hoping somebody could give me information about programming using repeat and while.. &lt;br /&gt;
&lt;br /&gt;
The problem is : &lt;br /&gt;
&lt;br /&gt;
using while .. do&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
5 4&lt;br /&gt;
5 4 3 &lt;br /&gt;
5 4 3 2 &lt;br /&gt;
5 4 3 2 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and using repeat until&lt;br /&gt;
1 2 3 4 5 &lt;br /&gt;
1 2 3 4 &lt;br /&gt;
1 2 3 &lt;br /&gt;
1 2 &lt;br /&gt;
1 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I've been puzzling over this for a while and all my efforts have given me an output of: &lt;br /&gt;
5&lt;br /&gt;
4&lt;br /&gt;
3&lt;br /&gt;
2&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
for the 'while' and similar output for the 'repeat'&lt;br /&gt;
&lt;br /&gt;
Is the process similar to the 'for'? &lt;br /&gt;
I've been able to do the required output using FOR command, but I cannot seem to apply it to REPEAT and WHILE.&lt;br /&gt;
&lt;br /&gt;
Your help would be greatly appreciated. &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/103649/103649/about-repeat-until-and-while-do/</guid>
      <pubDate>Fri, 01 Mar 2002 04:46:40 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: About Repeat.. until and While.. do</title>
      <link>http://www.programmersheaven.com/mb/pasprog/103649/103824/re-about-repeat-until-and-while-do/#103824</link>
      <description>&lt;pre class="sourcecode"&gt;
program looptest;

var
  I, N:integer;
  
begin
  WriteLn('using while .. do');
  N:=5;
  while ( N &amp;gt;= 1 ) do begin
    I:=5;
    while (I &amp;gt;= N ) do begin
      write(I ,#32);
      dec(I)
    end;
    writeln;
    dec(N);
  end;
  WriteLn( 'using repeat .. until');
  N:=5;
  repeat
    I:=0;
    repeat
      inc(I);
      write(I, #32);
    until ( I &amp;gt;= N );
    writeln;
    dec(N);
  until ( N &amp;lt; 1 );
end.
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/103649/103824/re-about-repeat-until-and-while-do/#103824</guid>
      <pubDate>Sat, 02 Mar 2002 06:09:09 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Thank you very much ^^</title>
      <link>http://www.programmersheaven.com/mb/pasprog/103649/103825/thank-you-very-much-/#103825</link>
      <description>The code is a great help.. now I'm beginning to understand the logic involved better :)&lt;br /&gt;
&lt;br /&gt;
Many thanks for your quick reply!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/103649/103825/thank-you-very-much-/#103825</guid>
      <pubDate>Sat, 02 Mar 2002 06:23:42 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>