<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: legend</title>
    <description>The latest articles on DEV Community by legend (@legend01).</description>
    <link>https://dev.to/legend01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1705532%2Fb89bbbe1-01d7-4ce4-af0b-811e407b5867.jpg</url>
      <title>DEV Community: legend</title>
      <link>https://dev.to/legend01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/legend01"/>
    <language>en</language>
    <item>
      <title>c program for counting numbers</title>
      <dc:creator>legend</dc:creator>
      <pubDate>Sun, 30 Jun 2024 09:57:46 +0000</pubDate>
      <link>https://dev.to/legend01/c-program-for-counting-numbers-4o8p</link>
      <guid>https://dev.to/legend01/c-program-for-counting-numbers-4o8p</guid>
      <description>&lt;p&gt;&lt;strong&gt;hello everyone i've been writing this program for counting numbers and i want to print it from certain starting point to certain extent&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//counting machine
#include&amp;lt;stdio.h&amp;gt;

int main()
{
    int q1,q2,q3,q4,q5,q6,c=0,NOL,st;
    printf("enter the number from where to how much combinations you want: ");
    scanf("%d %d",&amp;amp;st,&amp;amp;NOL);
    q1=q2=q3=q4=q5=q6=0;
    for(q1=0;q1&amp;lt;=60;q1++)
    {
        for(q2=0;q2&amp;lt;=60;q2++)
        {
            for(q3=0;q3&amp;lt;=60;q3++)
            {
                for(q4=0;q4&amp;lt;=60;q4+=2)
                {
                    for(q5=0;q5&amp;lt;=60;q5+=5)
                    {
                        for(q6=0;q6&amp;lt;=60;q6+=5)
                        {
                            c++;
                            if((q1+q2+q3+q4+q5+q6)==60 &amp;amp;&amp;amp; c&amp;gt;=st &amp;amp;&amp;amp; (q4/2)&amp;lt;=5)
                            {
                                if(c&amp;lt;=NOL)
                                {
                                    printf("%d %d %d %d %d %d \n",q1,q2,q3,q4,q5,q6);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>c</category>
    </item>
  </channel>
</rss>
