Trang 7 của 13 Đầu tiênĐầu tiên ... 56789 ... CuốiCuối
Kết quả 61 đến 70 của 128
  1. #61
    Ngày tham gia
    Sep 2014
    Bài viết
    0
    chào mọi người, mình mới học java nên có 1 số thắc mắc:
    về phần toán tử quan hệ, logic và toán tử trên bit thì làm sao để phân biệt khi sử dụng, (& -- &&, | -- ||, ! -- ^)
    vd


    Mã nguồn PHP:
    [color=#000000]
    int a [/color][color=#007700]= [/color][color=#0000bb]6[/color][color=#007700];[/color][color=#0000bb]int b [/color][color=#007700]= [/color][color=#0000bb]9[/color][color=#007700];[/color][color=#0000bb]int c [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&&[/color][color=#0000bb]b[/color][color=#007700];[/color][color=#0000bb]int d [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&[/color][color=#0000bb]b[/color][color=#007700];[/color] 
    thì c =? và d=?

    bạn tiasangmoi92 vào giúp mình bài này nữa với :d

  2. #62
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    Trích dẫn Gửi bởi kz9x
    chào mọi người, mình mới học java nên có 1 số thắc mắc:
    về phần toán tử quan hệ, logic và toán tử trên bit thì làm sao để phân biệt khi sử dụng, (& -- &&, | -- ||, ! -- ^)
    vd


    Mã nguồn PHP:
    [color=#000000]
    int a [/color][color=#007700]= [/color][color=#0000bb]6[/color][color=#007700];[/color][color=#0000bb]int b [/color][color=#007700]= [/color][color=#0000bb]9[/color][color=#007700];[/color][color=#0000bb]int c [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&&[/color][color=#0000bb]b[/color][color=#007700];[/color][color=#0000bb]int d [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&[/color][color=#0000bb]b[/color][color=#007700];[/color] 
    thì c =? và d=?

    bạn tiasangmoi92 vào giúp mình bài này nữa với :d
    bạn system.out.print. .. là biết liền ^^

  3. #63
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    Trích dẫn Gửi bởi tiasangmoi92
    bạn system.out.print. .. là biết liền ^^
    nó báo lỗi chỗ

    Mã nguồn PHP:
    [color=#000000]
    int c [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&&[/color][color=#0000bb]b[/color][color=#007700];[/color] 
    á bạn ơi
    cái && này nó bảo là phéo toán quan hệ, mình không hiểu lắm, hôm trước ông thầy có đưa ví dụ về cái này mà ko kịp chép, bữa sau học xong ổng mới cho slide, để bữa sau mình đưa đoạn chương trình đó lên nhờ bạn giúp :d

  4. #64
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    Trích dẫn Gửi bởi kz9x
    nó báo lỗi chỗ

    Mã nguồn PHP:
    [color=#000000]
    int c [/color][color=#007700]= [/color][color=#0000bb]a[/color][color=#007700]&&[/color][color=#0000bb]b[/color][color=#007700];[/color] 
    á bạn ơi
    cái && này nó bảo là phéo toán quan hệ, mình không hiểu lắm, hôm trước ông thầy có đưa ví dụ về cái này mà ko kịp chép, bữa sau học xong ổng mới cho slide, để bữa sau mình đưa đoạn chương trình đó lên nhờ bạn giúp :d
    mình cũng thấy lạ, chưa thấy ai vết như vậy, vì đây là điều kiện logic với nhau mà!

  5. #65
    Ngày tham gia
    Apr 2015
    Bài viết
    0
    Trích dẫn Gửi bởi tiasangmoi92
    mình cũng thấy lạ, chưa thấy ai vết như vậy, vì đây là điều kiện logic với nhau mà!
    thứ 4 này học xong sẽ có slide, mình post cái đoạn code đó lên, bạn xem giúp mình nha :d

  6. #66
    Ngày tham gia
    Aug 2015
    Bài viết
    0
    bai 1 : <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã nguồn PHP:
    [color=#000000]
    import java[/color][color=#007700].[/color][color=#0000bb]io[/color][color=#007700].*;class [/color][color=#0000bb]chia[/color][color=#007700]{ public static [/color][color=#0000bb]void main [/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]int a[/color][color=#007700]=[/color][color=#0000bb]1[/color][color=#007700],[/color][color=#0000bb]b[/color][color=#007700]=[/color][color=#0000bb]2[/color][color=#007700],[/color][color=#0000bb]c[/color][color=#007700]=[/color][color=#0000bb]3 [/color][color=#007700],[/color][color=#0000bb]nguyen1[/color][color=#007700],[/color][color=#0000bb]nguyen2[/color][color=#007700],[/color][color=#0000bb]nguyen3[/color][color=#007700],[/color][color=#0000bb]du1[/color][color=#007700],[/color][color=#0000bb]du2[/color][color=#007700],[/color][color=#0000bb]du3[/color][color=#007700]; [/color][color=#0000bb]nguyen1[/color][color=#007700]=[/color][color=#0000bb]a[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]nguyen2[/color][color=#007700]=[/color][color=#0000bb]b[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]nguyen3[/color][color=#007700]=[/color][color=#0000bb]c[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]du1[/color][color=#007700]=[/color][color=#0000bb]a[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]du2[/color][color=#007700]=[/color][color=#0000bb]b[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]du3[/color][color=#007700]=[/color][color=#0000bb]c[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]a[/color][color=#007700]++; [/color][color=#0000bb]b[/color][color=#007700]++; [/color][color=#0000bb]c[/color][color=#007700]++; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"phan nguyen khi chia a, b,c cho 2 lan luot = " [/color][color=#007700]+[/color][color=#0000bb]nguyen1[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]nguyen2[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]nguyen3[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"phan du khi chia a,b,c cho 3 lan luot = " [/color][color=#007700]+[/color][color=#0000bb]du1[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]du2[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]du3[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"sau khi tang a,b,c len 1 :"[/color][color=#007700]+[/color][color=#0000bb]a[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]b[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]c[/color][color=#007700]); }}[/color] 
    </blockquote></div>
    </div>
    </div>

  7. #67
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    bai 1 : <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã nguồn PHP:
    [color=#000000]
    import java[/color][color=#007700].[/color][color=#0000bb]io[/color][color=#007700].*;class [/color][color=#0000bb]chia[/color][color=#007700]{ public static [/color][color=#0000bb]void main [/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]int a[/color][color=#007700]=[/color][color=#0000bb]1[/color][color=#007700],[/color][color=#0000bb]b[/color][color=#007700]=[/color][color=#0000bb]2[/color][color=#007700],[/color][color=#0000bb]c[/color][color=#007700]=[/color][color=#0000bb]3 [/color][color=#007700],[/color][color=#0000bb]nguyen1[/color][color=#007700],[/color][color=#0000bb]nguyen2[/color][color=#007700],[/color][color=#0000bb]nguyen3[/color][color=#007700],[/color][color=#0000bb]du1[/color][color=#007700],[/color][color=#0000bb]du2[/color][color=#007700],[/color][color=#0000bb]du3[/color][color=#007700]; [/color][color=#0000bb]nguyen1[/color][color=#007700]=[/color][color=#0000bb]a[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]nguyen2[/color][color=#007700]=[/color][color=#0000bb]b[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]nguyen3[/color][color=#007700]=[/color][color=#0000bb]c[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]du1[/color][color=#007700]=[/color][color=#0000bb]a[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]du2[/color][color=#007700]=[/color][color=#0000bb]b[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]du3[/color][color=#007700]=[/color][color=#0000bb]c[/color][color=#007700]%[/color][color=#0000bb]3[/color][color=#007700]; [/color][color=#0000bb]a[/color][color=#007700]++; [/color][color=#0000bb]b[/color][color=#007700]++; [/color][color=#0000bb]c[/color][color=#007700]++; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"phan nguyen khi chia a, b,c cho 2 lan luot = " [/color][color=#007700]+[/color][color=#0000bb]nguyen1[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]nguyen2[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]nguyen3[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"phan du khi chia a,b,c cho 3 lan luot = " [/color][color=#007700]+[/color][color=#0000bb]du1[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]du2[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]du3[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"sau khi tang a,b,c len 1 :"[/color][color=#007700]+[/color][color=#0000bb]a[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]b[/color][color=#007700]+[/color][color=#dd0000]","[/color][color=#007700]+[/color][color=#0000bb]c[/color][color=#007700]); }}[/color] 
    </blockquote></div>
    </div>
    </div>

  8. #68
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>

    Mã nguồn PHP:
    [color=#000000]
    import java[/color][color=#007700].[/color][color=#0000bb]io[/color][color=#007700].*;class [/color][color=#0000bb]giaiphuongtrinh [/color][color=#007700]{ public static [/color][color=#0000bb]void main [/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]float a[/color][color=#007700]=[/color][color=#0000bb]1.5f[/color][color=#007700],[/color][color=#0000bb]b[/color][color=#007700]=[/color][color=#0000bb]2.5f [/color][color=#007700],[/color][color=#0000bb]c[/color][color=#007700]=[/color][color=#0000bb]3.5f[/color][color=#007700],[/color][color=#0000bb]x[/color][color=#007700],[/color][color=#0000bb]y[/color][color=#007700]; [/color][color=#0000bb]x[/color][color=#007700]=([/color][color=#0000bb]8[/color][color=#007700]*[/color][color=#0000bb]c[/color][color=#007700]-[/color][color=#0000bb]b[/color][color=#007700])/([/color][color=#0000bb]2[/color][color=#007700]*[/color][color=#0000bb]a[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"x= " [/color][color=#007700]+[/color][color=#0000bb]x[/color][color=#007700]); [/color][color=#0000bb]y[/color][color=#007700]=(int) [/color][color=#0000bb]x[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println [/color][color=#007700]([/color][color=#dd0000]"ket qua ep kieu nguyen x= "[/color][color=#007700]+[/color][color=#0000bb]y[/color][color=#007700]); } }[/color] 
    </blockquote></div>
    </div>
    </div>

  9. #69
    Ngày tham gia
    Apr 2016
    Bài viết
    0
    bài 1:
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã nguồn PHP:
    [color=#000000]
    [/color][color=#007700]public class [/color][color=#0000bb]bai1 [/color][color=#007700]{ public static [/color][color=#0000bb]void main [/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]int a [/color][color=#007700]= [/color][color=#0000bb]5[/color][color=#007700]; [/color][color=#0000bb]int b [/color][color=#007700]= [/color][color=#0000bb]10[/color][color=#007700]; [/color][color=#0000bb]int c [/color][color=#007700]= [/color][color=#0000bb]30[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan nguyen a khi chia 2: " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan nguyen b khi chia 2: " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan nguyen c khi chia 2: " [/color][color=#007700]+ [/color][color=#0000bb]c[/color][color=#007700]/[/color][color=#0000bb]2[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan du a chia cho 3: " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700]%[/color][color=#0000bb]3 [/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan du b chia cho 3: " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700]%[/color][color=#0000bb]3 [/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"phan du c chia cho 3: " [/color][color=#007700]+ [/color][color=#0000bb]c[/color][color=#007700]%[/color][color=#0000bb]3 [/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700]++; [/color][color=#0000bb]b[/color][color=#007700]++; [/color][color=#0000bb]c[/color][color=#007700]++; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"so a: " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"so a: " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"so a: " [/color][color=#007700]+ [/color][color=#0000bb]c[/color][color=#007700]); }}[/color] 
    </blockquote></div>
    </div>
    </div>

    bài 2:
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã:
    public class bai2 {
        public static void main(string[] args)
        {
            double a = 3;
            double b = 5;
            double c = 7;
            double x = (8*c - b)/(2*a);
            system.out.println("x: " + x);
            int epkieu = (int) x;
            system.out.println("x ep kieu: " + epkieu);
        }
    }
    </blockquote></div>
    </div>
    </div>

    bài 3:
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã:
    public class bai3 {
        public static void main(string[] args)
        {
            double a = 3;
            double b = 4;
            double c = 5;
            double p = (a+b+c)/2;
            double s = math.sqrt(p*(p-a)*(p-b)*(p-c));
            system.out.println("dien tich tam giac: " + s);
            //double x = math.asin(0.5);
            //double y = math.todegrees(x);
            //system.out.println(x);   
            double sina = s/(0.5*b*c);
            double sinb = s/(0.5*a*c);
            double sinc = s/(0.5*a*b);
           
            double radiana = math.asin(sina);
            double radianb = math.asin(sinb);
            double radianc = math.asin(sinc);
           
            system.out.println("goc a: " + math.todegrees(radiana));
            system.out.println("goc b: " + math.todegrees(radianb));
            system.out.println("goc c: " + math.todegrees(radianc));
        }
     
    }
    </blockquote></div>
    </div>
    </div>

  10. #70
    Ngày tham gia
    Mar 2014
    Bài viết
    0
    // bai 3
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>

    show spoiler
    hide spoiler

    </div>
    <div class="quotecontent">
    <div class="bbcm_spoiler_noscript"><blockquote>


    Mã nguồn PHP:
    [color=#000000]
    package edu[/color][color=#007700].[/color][color=#0000bb]kien[/color][color=#007700].[/color][color=#0000bb]java[/color][color=#007700]; public class [/color][color=#0000bb]unit2_3 [/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]float a [/color][color=#007700]= [/color][color=#0000bb]12f[/color][color=#007700], [/color][color=#0000bb]b [/color][color=#007700]= [/color][color=#0000bb]15f[/color][color=#007700], [/color][color=#0000bb]c [/color][color=#007700]= [/color][color=#0000bb]7f[/color][color=#007700], [/color][color=#0000bb]p[/color][color=#007700]; [/color][color=#0000bb]double s[/color][color=#007700]; [/color][color=#0000bb]p [/color][color=#007700]= ([/color][color=#0000bb]a [/color][color=#007700]+ [/color][color=#0000bb]b [/color][color=#007700]+ [/color][color=#0000bb]c[/color][color=#007700]) / [/color][color=#0000bb]2[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nua chu vi tam giac la:" [/color][color=#007700]+ [/color][color=#0000bb]p[/color][color=#007700]); [/color][color=#0000bb]s [/color][color=#007700]= [/color][color=#0000bb]math[/color][color=#007700].[/color][color=#0000bb]sqrt[/color][color=#007700]([/color][color=#0000bb]p [/color][color=#007700]* ([/color][color=#0000bb]p [/color][color=#007700]- [/color][color=#0000bb]a[/color][color=#007700]) * ([/color][color=#0000bb]p [/color][color=#007700]- [/color][color=#0000bb]b[/color][color=#007700]) * ([/color][color=#0000bb]p [/color][color=#007700]- [/color][color=#0000bb]c[/color][color=#007700])); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"dien tich tam giac la:" [/color][color=#007700]+ [/color][color=#0000bb]s[/color][color=#007700]); [/color][color=#0000bb]int songuyen[/color][color=#007700]; [/color][color=#0000bb]songuyen [/color][color=#007700]= (int) [/color][color=#0000bb]s[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ep kieu nguyen" [/color][color=#007700]+ [/color][color=#0000bb]songuyen[/color][color=#007700]); [/color][color=#0000bb]float cosa[/color][color=#007700], [/color][color=#0000bb]cosb[/color][color=#007700], [/color][color=#0000bb]cosc[/color][color=#007700]; [/color][color=#0000bb]cosa [/color][color=#007700]= ([/color][color=#0000bb]b [/color][color=#007700]* [/color][color=#0000bb]b [/color][color=#007700]+ [/color][color=#0000bb]c [/color][color=#007700]* [/color][color=#0000bb]c [/color][color=#007700]- [/color][color=#0000bb]2 [/color][color=#007700]* [/color][color=#0000bb]a [/color][color=#007700]* [/color][color=#0000bb]a[/color][color=#007700]) / [/color][color=#0000bb]2 [/color][color=#007700]* [/color][color=#0000bb]a [/color][color=#007700]* [/color][color=#0000bb]b[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"coss a" [/color][color=#007700]+ [/color][color=#0000bb]math[/color][color=#007700].[/color][color=#0000bb]cos[/color][color=#007700]([/color][color=#0000bb]cosa[/color][color=#007700])); [/color][color=#0000bb]cosb [/color][color=#007700]= ([/color][color=#0000bb]a [/color][color=#007700]* [/color][color=#0000bb]a [/color][color=#007700]+ [/color][color=#0000bb]c [/color][color=#007700]* [/color][color=#0000bb]c [/color][color=#007700]- [/color][color=#0000bb]2 [/color][color=#007700]* [/color][color=#0000bb]b [/color][color=#007700]* [/color][color=#0000bb]b[/color][color=#007700]) / [/color][color=#0000bb]2 [/color][color=#007700]* [/color][color=#0000bb]a [/color][color=#007700]* [/color][color=#0000bb]c[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"cosb" [/color][color=#007700]+ [/color][color=#0000bb]math[/color][color=#007700].[/color][color=#0000bb]cos[/color][color=#007700]([/color][color=#0000bb]cosb[/color][color=#007700])); [/color][color=#0000bb]cosc[/color][color=#007700]=([/color][color=#0000bb]a[/color][color=#007700]*[/color][color=#0000bb]a[/color][color=#007700]+[/color][color=#0000bb]b[/color][color=#007700]*[/color][color=#0000bb]b[/color][color=#007700]-[/color][color=#0000bb]2[/color][color=#007700]*[/color][color=#0000bb]c[/color][color=#007700]*[/color][color=#0000bb]c[/color][color=#007700])/[/color][color=#0000bb]2[/color][color=#007700]*[/color][color=#0000bb]a[/color][color=#007700]*[/color][color=#0000bb]b[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"cosc"[/color][color=#007700]+[/color][color=#0000bb]math[/color][color=#007700].[/color][color=#0000bb]cos[/color][color=#007700]([/color][color=#0000bb]cosc[/color][color=#007700])); } }[/color] 
    </blockquote></div>
    </div>
    </div>

Trang 7 của 13 Đầu tiênĐầu tiên ... 56789 ... CuốiCuối

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •