<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amphai PANGNA on Medium]]></title>
        <description><![CDATA[Stories by Amphai PANGNA on Medium]]></description>
        <link>https://medium.com/@amphai?source=rss-dced53df9bd2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*k5GE5L9MyG2y5Kwm.</url>
            <title>Stories by Amphai PANGNA on Medium</title>
            <link>https://medium.com/@amphai?source=rss-dced53df9bd2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:00:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amphai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ລອງມາຂຽນໂປຣແກຣມໄລ່ສົມຜົນຂັ້ນສອງດ້ວຍ ພາສາ Java ກັນ]]></title>
            <link>https://medium.com/@amphai/%E0%BA%A5%E0%BA%AD%E0%BA%87%E0%BA%A1%E0%BA%B2%E0%BA%82%E0%BA%BD%E0%BA%99%E0%BB%82%E0%BA%9B%E0%BA%A3%E0%BA%81%E0%BA%A3%E0%BA%A1%E0%BB%84%E0%BA%A5%E0%BB%88%E0%BA%AA%E0%BA%BB%E0%BA%A1%E0%BA%9C%E0%BA%BB%E0%BA%99%E0%BA%82%E0%BA%B1%E0%BB%89%E0%BA%99%E0%BA%AA%E0%BA%AD%E0%BA%87%E0%BA%94%E0%BB%89%E0%BA%A7%E0%BA%8D-%E0%BA%9E%E0%BA%B2%E0%BA%AA%E0%BA%B2-java-%E0%BA%81%E0%BA%B1%E0%BA%99-9da5abaf3695?source=rss-dced53df9bd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9da5abaf3695</guid>
            <dc:creator><![CDATA[Amphai PANGNA]]></dc:creator>
            <pubDate>Wed, 12 Oct 2016 15:13:12 GMT</pubDate>
            <atom:updated>2016-10-12T16:08:01.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*uGpZ6SGYr9GsHjGDDSvUOg.jpeg" /><figcaption>ສົມຜົນຂັ້ນສອງ</figcaption></figure><blockquote>ມືໃໝ່ຮຽນຂຽນພາສາ ຈາວາ</blockquote><h4>ທຳອິດແມ່ນເຮົາມາເບິ່ງກ່ອນວ່າ ການຄິດໄລ່ສົມຜົນຂັ້ນສອງແມ່ນ:</h4><h4><strong>ax^2+bx+c=0</strong></h4><p><strong>delta = b * b — 4 * a * c</strong></p><blockquote>ມີ 3 ກໍລະນີ ດັ່ງນີ້:</blockquote><blockquote>- ຖ້າ delta &lt; 0 ແມ່ນບໍ່ມີຄ່າ<br>- ຖ້າ delta = 0 ມີຄ່າດຽວກໍ່ຄື x = -b / 2 * a<br>- ຖ້າ delta &gt; 0 ແມ່ນມີ 2 ຄ່າ :</blockquote><ul><li><strong>x1 = (-b + Math.sqrt(delta)) / (2 * a);</strong></li><li><strong>x2 = (-b — Math.sqrt(delta)) / (2 * a);</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XEbzrWztqsj6rVTYMxe3yg.png" /></figure><p>ຈາກນັ້ນກໍໍ່ເປີດ ໂປຣແກຣມ IDE ສຳລັບຂຽນ Java ຂຶ້ນມາ ໃນນີ້ຂ້ອຍໃຊ້ Eclipse ຈາກນັ້ນກໍ່ New Project ແລະຕັ້ງຊື່ Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Di1FZMu2EuYSOViNyEo-GQ.png" /></figure><p>ຫຼັງຈາກນັ້ນກໍ່ New Packages ແລະ New 2 Class ຂຶ້ນມາໂດຍໃສ່ຊື່ວ່າ main ແລະ Calculator ເຊິ່ງ main class ເຮົາຈະໃຊ້ສຳລັບ Run ໂປຣແກຣມຂອງພວກເຮົາ.</p><h3><strong>ຫຼັງຈາກນັ້ນກໍ່ມາຂຽນ Code ກັນເລີຍ</strong></h3><h4>package com.xyz.test;</h4><h4>public class Calculator {</h4><h4>public void calculate(double a ,double b ,double c){</h4><h4>double delta = b * b - 4 * a *c;</h4><h4>double x1 , x2;</h4><h4>if(delta &lt;0){</h4><h4>System.out.println(&quot;don&#39;t have value&quot;);</h4><h4>}</h4><h4>if(delta == 0){</h4><h4>System.out.println(&quot;the equation has a unique solution:&quot;+ (-b) / (2 * a ));</h4><h4>}</h4><h4>if(delta &gt; 0 ){</h4><h4>System.out.println(&quot;equations have two solutions :&quot;);</h4><h4>x1 = (-b+Math.sqrt(delta)) / (2 * a);</h4><h4>x2 = (-b-Math.sqrt(delta)) / (2 * a);</h4><h4>System.out.println(&quot;\nx1= &quot;+x1);</h4><h4>System.out.println(&quot;\nx2 &quot;+x2);</h4><h4>}</h4><h4>}</h4><h4>}</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8HJIPQ8gxGLfBW_x3dIuw.png" /></figure><p>ໃນ Calulator Class ເຮົາຂຽນ Code ໄດ້ດັ່ງຮູບຂ້າງເທິງ.</p><h4>package com.xyz.test;</h4><h4>import java.util.Scanner;</h4><h4>public class main {</h4><h4>public static void main(String[] args) {</h4><h4>Calculator cal = new Calculator();</h4><h4>Scanner sc = new Scanner(System.in);</h4><h4>System.out.printf(“Enter value a= “);</h4><h4>double a = sc.nextDouble();</h4><h4>System.out.printf(“Enter value b= “);</h4><h4>double b = sc.nextDouble();</h4><h4>System.out.printf(“Enter value c= “);</h4><h4>double c = sc.nextDouble();</h4><h4>cal.calculate(a, b, c);</h4><h4>sc.close();</h4><h4>}</h4><h4>}</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2Zxh1JVV_e-OhzFRmvlYA.png" /></figure><p>ສ່ວນໃນ main class ແມ່ນເຮົາໃຊ້ Scanner ໂດຍໃຫ້ຜູ້ໃຊ້ປ້ອນຄ່າຈາກແປ້ນພິມ,ໂດຍພິມຄຳສັ່ງຕາມຮູບດ້ານເທິງເລີຍ.</p><p>ຫຼັງຈາກນັ້ນລອງ Run ລອງເບິ່ງແລະປ້ອນຄ່າລອງເບິ່ງ:</p><p>ສົມໝຸດລອງປ້ອນ ຄ່າ</p><p><strong>a = 4</strong></p><p><strong>b = -4</strong></p><p><strong>c = 1</strong></p><p>ຜົນທີ່ໄດ້ແມ່ນ ຄ່າ x ຕ້ອງມີຄ່າດຽວເພາະວ່າ delta = 0</p><h4><strong>ຕາມຮູບດ້ານລຸ່ມເລີຍ:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5MsdEjErPE6a2IC14t0LQ.png" /></figure><h4>ຈົບຂ່າວ !</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9da5abaf3695" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ngày điệp của mình]]></title>
            <link>https://medium.com/@amphai/nga%CC%80y-%C4%91i%C3%AA%CC%A3p-cu%CC%89a-mi%CC%80nh-a470d10d316e?source=rss-dced53df9bd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a470d10d316e</guid>
            <dc:creator><![CDATA[Amphai PANGNA]]></dc:creator>
            <pubDate>Tue, 06 Sep 2016 05:24:59 GMT</pubDate>
            <atom:updated>2016-09-06T05:30:00.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6NeCCNKLG9zsHiFJFct9w.jpeg" /><figcaption>Ngày điệp của mình</figcaption></figure><h4><strong>Lần đần tiên</strong> mình đã viết Blog trên Medium . Hôm nay là ngày điệp, nhìn mặt trời là thoáng , thời tiết cũng ấm áp và mình cũng có ít học , thế thì sướng với mình rồi.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a470d10d316e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>