-
09-25-2013, 07:00 AM #61Junior Member
- 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]
bạn tiasangmoi92 vào giúp mình bài này nữa với :d
-
09-26-2013, 07:00 AM #62Junior Member
- Ngày tham gia
- Apr 2016
- Bài viết
- 0
Gửi bởi kz9x
-
09-26-2013, 07:00 AM #63Junior Member
- Ngày tham gia
- Apr 2016
- Bài viết
- 0
Gửi bởi tiasangmoi92
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]
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
-
09-28-2013, 07:00 AM #64Junior Member
- Ngày tham gia
- Apr 2016
- Bài viết
- 0
Gửi bởi kz9x
-
09-29-2013, 07:00 AM #65Junior Member
- Ngày tham gia
- Apr 2015
- Bài viết
- 0
Gửi bởi tiasangmoi92
-
09-29-2013, 07:00 AM #66Junior Member
- 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]
</div>
</div>
-
09-29-2013, 07:00 AM #67Junior Member
- 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]
</div>
</div>
-
09-30-2013, 07:00 AM #68Junior Member
- 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]
</div>
</div>
-
10-01-2013, 07:00 AM #69Junior Member
- 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]
</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); } }
</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)); } }
</div>
</div>
-
10-03-2013, 07:00 AM #70Junior Member
- 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]
</div>
</div>
Trò chơi điện tử cũng có thể góp phần vào việc cải thiện sức khỏe thể chất, đặc biệt là khi người chơi tham gia vào các trò chơi thể thao ảo hoặc các trò chơi đòi hỏi vận động cơ thể. Trong những trò...
Chơi game giúp trẻ em học cách làm việc độc lập và tự chủ trong học tập