<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Bài 17/11 by Phạm Nguyễn Minh Đức</title>
      <link>https://padlet.com/minhduclop4a2/bai17thang11</link>
      <description>Hãy cùng khám phá thế giới!</description>
      <language>en-us</language>
      <pubDate>2024-11-17 07:20:25 UTC</pubDate>
      <lastBuildDate>2024-11-17 09:12:15 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/8.0/png/1f349.png</url>
      </image>
      <item>
         <title>bài 1</title>
         <author>donutnaoko</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220379158</link>
         <description><![CDATA[<p>#include&lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int a, b, ivan, till;</p><p>int tong( int sua )</p><p>{</p><p>    int mizi=0;</p><p>    while(sua&gt;0)</p><p>    {</p><p>    mizi+=sua%10;</p><p>    sua/=10;</p><p>    }</p><p>    return mizi;</p><p>}</p><p>int main()</p><p>{</p><p>    cin&gt;&gt;a&gt;&gt;b;</p><p>    ivan=tong(a);</p><p>    till=tong(b);</p><p>    if(ivan&gt;till)</p><p>        cout&lt;&lt;a;</p><p>    else cout&lt;&lt;b;</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:19:57 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220379158</guid>
      </item>
      <item>
         <title>câu 1🙃</title>
         <author>buianhminhnguyen</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220379469</link>
         <description><![CDATA[<p>#include&lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int a,b,d,e;</p><p>int tong(int n)</p><p>{</p><p>    int sum=0;</p><p>    while (n&gt;0)</p><p>    {</p><p>        sum = sum + (n%10);</p><p>        n = n/10;</p><p>    }</p><p>    return sum;</p><p>}</p><p>int main()</p><p>{</p><p>    cin &gt;&gt; a &gt;&gt; b;</p><p>    d = a;</p><p>    e = b;</p><p>    if (tong(d)&gt;tong(e))</p><p>    {</p><p>        cout &lt;&lt; a;</p><p>    }</p><p>    else</p><p>    {</p><p>        cout &lt;&lt; b;</p><p>    }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:20:38 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220379469</guid>
      </item>
      <item>
         <title>C1</title>
         <author></author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220380552</link>
         <description><![CDATA[<p>#include &lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int a,b;</p><p>int Max(int x,int y)</p><p>{</p><p>    if(x&gt;y)</p><p>   return x;</p><p>   else return y;</p><p>}</p><p>int tong(int n)</p><p>{</p><p>    int s=0;</p><p>    while(n&gt;0)</p><p>    {</p><p>        s=s+n%10;</p><p>        n=n/10;</p><p>    }</p><p>    return s;</p><p>}</p><p>int main()</p><p>{</p><p>    cin&gt;&gt;a&gt;&gt;b;</p><p>    if(Max(tong(a),tong(b))==tong(a))</p><p>        cout&lt;&lt;a;</p><p>    else</p><p>    cout&lt;&lt;b;</p><p>}</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:23:01 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220380552</guid>
      </item>
      <item>
         <title>Câu 1</title>
         <author>minhduclop4a2</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220386662</link>
         <description><![CDATA[<p>1234</p><p>126</p><p>-&gt; 1234</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:39:15 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220386662</guid>
      </item>
      <item>
         <title>câu 2</title>
         <author>buianhminhnguyen</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220388007</link>
         <description><![CDATA[<p>#include&lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int n;</p><p>int tong (int a)</p><p>{</p><p>    int sum=0;</p><p>    while (a&gt;0)</p><p>    {</p><p>        sum = sum + (a%10);</p><p>        a = a/10;</p><p>    }</p><p>    return sum;</p><p>}</p><p>int scp (int a)</p><p>{</p><p>    int c=0;</p><p>    for(int i=1;i&lt;=a;i++)</p><p>    {</p><p>        if (i*i==a)</p><p>        {</p><p>            c=1;</p><p>            break;</p><p>        }</p><p>        else</p><p>        {</p><p>            c=0;</p><p>        }</p><p>    }</p><p>    return c;</p><p>}</p><p>int main()</p><p>{</p><p>    cin &gt;&gt; n;</p><p>    if(scp(tong(n))==1)</p><p>    {</p><p>        cout &lt;&lt; tong(n);</p><p>    }</p><p>    else</p><p>    {</p><p>        cout &lt;&lt; n;</p><p>    }</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:42:42 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220388007</guid>
      </item>
      <item>
         <title>cau1</title>
         <author>leminhnhat0612</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220388641</link>
         <description><![CDATA[<p>#include &lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int quanbell , nhatdz;</p><p>int mai(int a , int b)</p><p>{</p><p>    if(a &gt; b)</p><p>    return a;</p><p>    else</p><p>    return b;</p><p>}</p><p>int anhducgiontan(int n)</p><p>{</p><p>    int menmen = 0;</p><p>    while(n &gt; 0)</p><p>    {</p><p>        menmen += n % 10;</p><p>        n /= 10;</p><p>    }</p><p>    return menmen;</p><p>}</p><p>int main()</p><p>{</p><p>    cin&gt;&gt;quanbell&gt;&gt;nhatdz;</p><p>    if(mai((quanbell),(nhatdz)) == anhducgiontan(quanbell))</p><p>    cout&lt;&lt;quanbell;</p><p>    else</p><p>    cout&lt;&lt;nhatdz;</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:43:58 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220388641</guid>
      </item>
      <item>
         <title>bài 2</title>
         <author>donutnaoko</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389475</link>
         <description><![CDATA[<p>#include&lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int n, c, y;</p><p>int mizisua(int sua )</p><p> {</p><p>     int mizi=0;</p><p>    while(sua&gt;0)</p><p>    {</p><p>    mizi+=sua%10;</p><p>    sua/=10;</p><p>    }</p><p>    return mizi;</p><p> }</p><p>int main()</p><p>{</p><p>   cin&gt;&gt;n;</p><p>   y=mizisua(n);</p><p>   c=sqrt(y);</p><p>   if(c*c==y)</p><p>    cout&lt;&lt;y;</p><p>   else cout&lt;&lt;n;</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:46:00 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389475</guid>
      </item>
      <item>
         <title></title>
         <author>manhquanlc1508</author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389696</link>
         <description><![CDATA[<p>#include &lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int tong(int n) {</p><p>    int sum = 0;</p><p>    while (n &gt; 0) {</p><p>        sum += n % 10;</p><p>        n /= 10;</p><p>    }</p><p>    return sum;</p><p>}</p><p>int main() {</p><p>    int a, b;</p><p>    cin &gt;&gt; a &gt;&gt; b;</p><p>    int suma (a);</p><p>    int sumb (b);</p><p>    if (suma &gt; sumb) {</p><p>        cout &lt;&lt; a &lt;&lt; endl;</p><p>    } else if (suma &lt; sumb) {</p><p>        cout &lt;&lt; b &lt;&lt; endl;</p><p>    } else {</p><p>    }</p><p>    return 0;</p><p>}</p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:46:34 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389696</guid>
      </item>
      <item>
         <title>C2</title>
         <author></author>
         <link>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389825</link>
         <description><![CDATA[<p>#include &lt;bits/stdc++.h&gt;</p><p>using namespace std;</p><p>int n;</p><p>bool scp(int n)</p><p>{</p><p>    int k=sqrt(n);</p><p>    if(k*k==n)</p><p>        return 1;</p><p>    else</p><p>        return 0;</p><p>}</p><p>int tong(int n)</p><p>{</p><p>    int s=0;</p><p>    while(n&gt;0)</p><p>    {</p><p>        s=s+n%10;</p><p>        n=n/10;</p><p>    }</p><p>    return s;</p><p>}</p><p>int main()</p><p>{</p><p>    cin&gt;&gt;n;</p><p>    if(scp(tong(n))==1)</p><p>        cout&lt;&lt;tong(n);</p><p>    else</p><p>        cout&lt;&lt;n;</p><p>}</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-17 08:46:57 UTC</pubDate>
         <guid>https://padlet.com/minhduclop4a2/bai17thang11/wish/3220389825</guid>
      </item>
   </channel>
</rss>
