<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=StartprogrammingusingObjectPascal%3ARestaurantProgramUsingRepeatLoop</id>
	<title>StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=StartprogrammingusingObjectPascal%3ARestaurantProgramUsingRepeatLoop"/>
	<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;action=history"/>
	<updated>2026-05-01T07:47:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=187&amp;oldid=prev</id>
		<title>Onionmixer: 오류수정</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=187&amp;oldid=prev"/>
		<updated>2013-04-04T11:34:56Z</updated>

		<summary type="html">&lt;p&gt;오류수정&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:34, 4 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     repeat&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     repeat&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Chicken           (10 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;1 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Chicken           (10 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;2 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Fish                  (7 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;2 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Fish                  (7 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;3 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Meat                (8 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;3 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Meat                (8 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;4 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Salad                (2 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;4 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Salad                (2 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;5 - Orange Juice (1 Geneh)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;5 - Orange Juice (1 Geneh)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;6 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Milk                  (1 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&#039;6 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Milk                  (1 Geneh)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;X - nothing&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln(&amp;#039;X - nothing&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Writeln;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=186&amp;oldid=prev</id>
		<title>Onionmixer: 스타일 수정</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=186&amp;oldid=prev"/>
		<updated>2013-04-04T05:54:22Z</updated>

		<summary type="html">&lt;p&gt;스타일 수정&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:54, 4 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;앞의 예제에서 이 기법들을 사용했습니다.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;앞의 예제에서 이 기법들을 사용했습니다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# case 분기에 &#039;&#039;begin end&#039;&#039; 를 더하여 여러개의 구문을 하나의 구문으로 만들었습니다.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# case 분기에 &#039;&#039;begin end&#039;&#039; 를 더하여 여러개의 구문을 하나의 구문으로 만들었습니다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 주문의 총 가격을 더하기 위해 변수 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039; 값을 0(변수에 초기값 위치)으로 초기화했습니다. 그 다음 선택한 가격을 매 순환마다 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039;변수에 더했습니다.&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# 주문의 총 가격을 더하기 위해 변수 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039; 값을 0(변수에 초기값 위치)으로 초기화했습니다. 그 다음 선택한 가격을 매 순환마다 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039;변수에 더했습니다.&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Total:= Total + Price;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Total:= Total + Price;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=185&amp;oldid=prev</id>
		<title>Onionmixer: 번역수정</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=185&amp;oldid=prev"/>
		<updated>2013-04-04T05:54:01Z</updated>

		<summary type="html">&lt;p&gt;번역수정&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==repeat 순환문을 사용한 음식점 프로그램==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
    Selection: Char;&lt;br /&gt;
    Price: Integer;&lt;br /&gt;
    Total: Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Total:= 0;&lt;br /&gt;
    repeat&lt;br /&gt;
        Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;1 – Chicken           (10 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;2 – Fish                  (7 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;3 – Meat                (8 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;4 – Salad                (2 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;5 - Orange Juice (1 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;6 – Milk                  (1 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;X - nothing&amp;#039;);&lt;br /&gt;
        Writeln;&lt;br /&gt;
        Write(&amp;#039;Please enter your selection: &amp;#039;);&lt;br /&gt;
        Readln(Selection);&lt;br /&gt;
&lt;br /&gt;
        case Selection of&lt;br /&gt;
            &amp;#039;1&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Chicken, this will take 15 minutes&amp;#039;);&lt;br /&gt;
                Price:= 10;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;2&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Fish, this will take 12 minutes&amp;#039;);&lt;br /&gt;
                Price:= 7;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;3&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered meat, this will take 18 minutes&amp;#039;);&lt;br /&gt;
                Price:= 8;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;4&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Salad, this will take 5 minutes&amp;#039;);&lt;br /&gt;
                Price:= 2;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;5&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Orange juice, this will take 2 minutes&amp;#039;);&lt;br /&gt;
                Price:= 1;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;6&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Milk, this will take 1 minute&amp;#039;);&lt;br /&gt;
                Price:= 1;&lt;br /&gt;
            end;&lt;br /&gt;
            else&lt;br /&gt;
            begin&lt;br /&gt;
                Writeln(&amp;#039;Wrong entry&amp;#039;);&lt;br /&gt;
                Price:= 0;&lt;br /&gt;
            end;&lt;br /&gt;
        end;&lt;br /&gt;
&lt;br /&gt;
        Total:= Total + Price;&lt;br /&gt;
&lt;br /&gt;
    until (Selection = &amp;#039;x&amp;#039;) or (Selection = &amp;#039;X&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;Total price = &amp;#039;, Total);&lt;br /&gt;
    Write(&amp;#039;Press enter key to close&amp;#039;);&lt;br /&gt;
    Readln;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
앞의 예제에서 이 기법들을 사용했습니다.&lt;br /&gt;
&lt;br /&gt;
# case 분기에 &amp;#039;&amp;#039;begin end&amp;#039;&amp;#039; 를 더하여 여러개의 구문을 하나의 구문으로 만들었습니다.&amp;lt;br&amp;gt;&lt;br /&gt;
# 주문의 총 가격을 더하기 위해 변수 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039; 값을 0(변수에 초기값 위치)으로 초기화했습니다. 그 다음 선택한 가격을 매 순환마다 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039;변수에 더했습니다.&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
Total:= Total + Price;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# 주문을 끝내기 위해 대문자 &amp;#039;X&amp;#039; 와 소문자 &amp;#039;x&amp;#039; 두가지 옵션을 넣었습니다. 두 문자는 컴퓨터 메모리에서 다르게 표현(저장)합니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===참고===&lt;br /&gt;
&lt;br /&gt;
아래 줄을&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
until (Selection = &amp;#039;x&amp;#039;) or (Selection = &amp;#039;X&amp;#039;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
다음 코드처럼 줄여서 사용 할 수 있습니다&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
until UpCase(Selection) = &amp;#039;X&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
이는 &amp;#039;&amp;#039;Selection&amp;#039;&amp;#039; 변수의 값이 소문자라면 대문자로 바꿔줄 것이고, (x또는 X) 두 경우에 대해 &amp;#039;&amp;#039;True&amp;#039;&amp;#039;를 되돌릴 것입니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:StartprogrammingusingObjectPascal]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=183&amp;oldid=prev</id>
		<title>Onionmixer: SPOP repeat순환문을사용한식당프로그램 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingRepeatLoop&amp;diff=183&amp;oldid=prev"/>
		<updated>2012-07-21T10:00:13Z</updated>

		<summary type="html">&lt;p&gt;SPOP repeat순환문을사용한식당프로그램 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===repeat 순환문을 사용한 식당 프로그램===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
    Selection: Char;&lt;br /&gt;
    Price: Integer;&lt;br /&gt;
    Total: Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Total:= 0;&lt;br /&gt;
    repeat&lt;br /&gt;
        Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;1 – Chicken           (10 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;2 – Fish                  (7 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;3 – Meat                (8 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;4 – Salad                (2 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;5 - Orange Juice (1 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;6 – Milk                  (1 Geneh)&amp;#039;);&lt;br /&gt;
        Writeln(&amp;#039;X - nothing&amp;#039;);&lt;br /&gt;
        Writeln;&lt;br /&gt;
        Write(&amp;#039;Please enter your selection: &amp;#039;);&lt;br /&gt;
        Readln(Selection);&lt;br /&gt;
&lt;br /&gt;
        case Selection of&lt;br /&gt;
            &amp;#039;1&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Chicken, this will take 15 minutes&amp;#039;);&lt;br /&gt;
                Price:= 10;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;2&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Fish, this will take 12 minutes&amp;#039;);&lt;br /&gt;
                Price:= 7;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;3&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered meat, this will take 18 minutes&amp;#039;);&lt;br /&gt;
                Price:= 8;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;4&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Salad, this will take 5 minutes&amp;#039;);&lt;br /&gt;
                Price:= 2;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;5&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Orange juice, this will take 2 minutes&amp;#039;);&lt;br /&gt;
                Price:= 1;&lt;br /&gt;
            end;&lt;br /&gt;
            &amp;#039;6&amp;#039;: begin&lt;br /&gt;
                Writeln(&amp;#039;You have ordered Milk, this will take 1 minute&amp;#039;);&lt;br /&gt;
                Price:= 1;&lt;br /&gt;
            end;&lt;br /&gt;
            else&lt;br /&gt;
            begin&lt;br /&gt;
                Writeln(&amp;#039;Wrong entry&amp;#039;);&lt;br /&gt;
                Price:= 0;&lt;br /&gt;
            end;&lt;br /&gt;
        end;&lt;br /&gt;
&lt;br /&gt;
        Total:= Total + Price;&lt;br /&gt;
&lt;br /&gt;
    until (Selection = &amp;#039;x&amp;#039;) or (Selection = &amp;#039;X&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;Total price = &amp;#039;, Total);&lt;br /&gt;
    Write(&amp;#039;Press enter key to close&amp;#039;);&lt;br /&gt;
    Readln;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
앞의 예제에서 이 기술들을 사용했습니다.&lt;br /&gt;
&lt;br /&gt;
1. case 분기에 &amp;#039;&amp;#039;begin end&amp;#039;&amp;#039; 를 더하여 여러개의 구문을 하나의 구문으로 만들었습니다.&amp;lt;br&amp;gt;&lt;br /&gt;
2. 주문의 총 가격을 더하기 위해 변수 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039; 값을 0(변수에 초기값 위치)으로 초기화했습니다. 그 다음 선택한 가격을 매 순환마다 &amp;#039;&amp;#039;Total&amp;#039;&amp;#039;변수에 더했습니다.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
Total:= Total + Price;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. 주문을 끝내기 위해 대문자 ’X’와 소문자 ‘x’ 두가지 옵션을 넣었습니다. 두 문자는 컴퓨터 메모리에서 달리 표현(저장)합니다.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;참고&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
이 줄을&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
until (Selection = &amp;#039;x&amp;#039;) or (Selection = &amp;#039;X&amp;#039;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
다음처럼 축소한 코드로 대체할 수 있습니다&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
until UpCase(Selection) = &amp;#039;X&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
이는 Selection 변수의 값이 소문자라면 대문자로 바꿔줄 것이고, (x또는 X) 두 경우에 대해 True를 되돌릴 것입니다.&lt;br /&gt;
[[Category:StartprogrammingusingObjectPascal]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>