<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: counter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223530#M650608</link>
    <description>DEFINE KNTR NUM*6 = 1&lt;BR /&gt; DEF NKNTR NUM*6=1&lt;BR /&gt; DEFINE TAG NUMERIC*6 = (NKNTR - 1)  +  KNTR&lt;BR /&gt; REP ITNO KNTR SUBT NORESET&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Feb 2010 13:05:45 GMT</pubDate>
    <dc:creator>kathy Goldie_1</dc:creator>
    <dc:date>2010-02-05T13:05:45Z</dc:date>
    <item>
      <title>counter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223528#M650606</link>
      <description>need to create a counter in quiz, &lt;BR /&gt;def counter num*2=0&lt;BR /&gt;def counter1 num*2=1&lt;BR /&gt;def counter2 num*2=counter+counter1&lt;BR /&gt;def counter3 num*2=counter2+counter1&lt;BR /&gt;&lt;BR /&gt;but I cant figure out how to make it increment? - sound dumb - it is sorry!</description>
      <pubDate>Thu, 04 Feb 2010 21:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223528#M650606</guid>
      <dc:creator>kathy Goldie_1</dc:creator>
      <dc:date>2010-02-04T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: counter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223529#M650607</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;What language?  'C'?&lt;BR /&gt;&lt;BR /&gt;Is this a binary problem?&lt;BR /&gt;2**0 = 1&lt;BR /&gt;2**1 = 2&lt;BR /&gt;2**2 = 4, etc.&lt;BR /&gt;&lt;BR /&gt;Where is your procedure / code so far?&lt;BR /&gt;&lt;BR /&gt;Here's an untested approximatation for korn shell for a binary counter.&lt;BR /&gt;&lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;EXP=$(($EXP+1))&lt;BR /&gt;TOT=$((2**$EXP))&lt;BR /&gt;if [[ $EXP -eq 9 ]]&lt;BR /&gt;then&lt;BR /&gt;   break&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 00:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223529#M650607</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-02-05T00:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: counter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223530#M650608</link>
      <description>DEFINE KNTR NUM*6 = 1&lt;BR /&gt; DEF NKNTR NUM*6=1&lt;BR /&gt; DEFINE TAG NUMERIC*6 = (NKNTR - 1)  +  KNTR&lt;BR /&gt; REP ITNO KNTR SUBT NORESET&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 13:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/counter/m-p/5223530#M650608</guid>
      <dc:creator>kathy Goldie_1</dc:creator>
      <dc:date>2010-02-05T13:05:45Z</dc:date>
    </item>
  </channel>
</rss>

