<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>My stellar padlet by JAMES VUV</title>
      <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2025-03-24 01:43:20 UTC</pubDate>
      <lastBuildDate>2025-05-09 01:44:16 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Viết chương trình tính tổng các số chia hết cho 3 từ 1 đến 100. Thông báo kết quả ra màn hình.</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378588050</link>
         <description><![CDATA[<p># Khởi tạo biến tổng</p><p>tong = 0</p><p><br/></p><p># Duyệt qua các số từ 1 đến 100</p><p>for i in range(1, 101):</p><p>    if i % 3 == 0:  # Kiểm tra nếu i chia hết cho 3</p><p>        tong += i</p><p><br/></p><p># In kết quả</p><p>print("Tổng các số chia hết cho 3 từ 1 đến 100 là:", tong)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-03-24 01:45:32 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378588050</guid>
      </item>
      <item>
         <title>Viết chương trình nhập vào 1 danh sách có n số nguyên. Tính tổng các số chẵn trong danh sách đó. Thông báo kết quả ra màn hình</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378589367</link>
         <description><![CDATA[<p># Nhập số lượng phần tử</p><p>n = int(input("Nhập số lượng phần tử của danh sách: "))</p><p><br/></p><p># Nhập danh sách số nguyên</p><p>danhsach = []</p><p>for i in range(n):</p><p>    so = int(input(f"Nhập số thứ {i+1}: "))</p><p>    danhsach.append(so)</p><p><br/></p><p># Tính tổng các số chẵn</p><p>tong_chan = sum(so for so in danhsach if so % 2 == 0)</p><p><br/></p><p># In kết quả</p><p>print("Tổng các số chẵn trong danh sách là:", tong_chan)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-03-24 01:46:29 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378589367</guid>
      </item>
      <item>
         <title>Viết chương trình nhập vào 1 xâu. Xóa tất cả các kí tự không phải là số (trong xâu). Thông báo xâu kết quả ra màn hình.</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378590519</link>
         <description><![CDATA[<p># Nhập vào một xâu từ bàn phím</p><p>xau = input("Nhập vào một xâu: ")</p><p><br/></p><p># Lọc và giữ lại các ký tự là số</p><p>xau_ket_qua = ''.join(ky_tu for ky_tu in xau if ky_tu.isdigit())</p><p><br/></p><p># Hiển thị kết quả</p><p>print("Xâu sau khi xóa các ký tự không phải là số:", xau_ket_qua)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-03-24 01:47:22 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3378590519</guid>
      </item>
      <item>
         <title>Kiểm tra số nguyên tố trong khoảng [m, n]</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442688197</link>
         <description><![CDATA[<p>m = int(input("Nhập vào số nguyên dương m: "))</p><p>n = int(input("Nhập vào số nguyên dương n: "))</p><p><br/></p><p>def snt2(x):</p><p>    if x &lt; 2:</p><p>        return False</p><p>    if x &lt;= 3:</p><p>        return True</p><p>    for i in range(2, x):</p><p>        if x % i == 0:</p><p>            return False</p><p>    return True</p><p><br/></p><p># Đếm số nguyên tố trong khoảng [m, n]</p><p>dem = 0</p><p>for i in range(m, n + 1):</p><p>    if snt2(i):</p><p>        dem += 1</p><p><br/></p><p>print(f"Có {dem} số nguyê</p><p>n tố (từ {m} đến {n})")</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-09 01:41:26 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442688197</guid>
      </item>
      <item>
         <title>Tìm Ước Chung Lớn Nhất (UCLN) của hai số nguyên dương</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442690694</link>
         <description><![CDATA[<p>s = input("Nhập vào số 2 nguyên dương a, b (cách nhau dấu cách): ")</p><p>A = s.split()</p><p>a = int(A[0])</p><p>b = int(A[1])</p><p><br/></p><p>    while m != n:</p><p>        if m &gt; n:</p><p>            m = m - n</p><p>        else:</p><p>            n = n - m</p><p>    return m</p><p><br/></p><p>kq = UCLN(a, b)</p><p>print("Ước chung lớn nhất là:", kq)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-09 01:43:03 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442690694</guid>
      </item>
      <item>
         <title>Tìm Giá Trị Lớn Nhất trong ba số nguyên</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442691471</link>
         <description><![CDATA[<p>a = int(input("Nhập vào số nguyên a: "))</p><p>b = int(input("Nhập vào số nguyên b: "))</p><p>c = int(input("Nhập vào số nguyên c: "))</p><p><br/></p><p># Hàm tìm giá trị lớn nhất giữa hai số</p><p>def MAX(M, N):</p><p>    if M &gt; N:</p><p>        return M</p><p>    else:</p><p>        return N</p><p><br/></p><p># Tìm giá trị lớn nhất của ba số</p><p>print("GTLN là:", MAX(MAX(a, b), c))</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-09 01:43:33 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442691471</guid>
      </item>
      <item>
         <title>Hoán đổi giá trị của hai số nguyên dương</title>
         <author>vuvjames</author>
         <link>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442692519</link>
         <description><![CDATA[<p>a = int(input("Nhập vào số nguyên dương a: "))</p><p>b = int(input("Nhập vào số nguyên dương b: "))</p><p><br/></p><p>def SWAP(m, n):</p><p>    m, n = n, m</p><p>    return m, n</p><p><br/></p><p>a, b = SWAP(a, b)</p><p>print(a, b)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-09 01:44:15 UTC</pubDate>
         <guid>https://padlet.com/vuvjames/7gsdr0hbg7x7du58/wish/3442692519</guid>
      </item>
   </channel>
</rss>
