-
04-19-2014, 07:00 AM #31Junior Member
- Ngày tham gia
- Apr 2015
- Bài viết
- 0
Mã nguồn PHP:[color=#000000]
import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].*;public class [/color][color=#0000bb]baitap [/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]student a [/color][color=#007700]= new [/color][color=#0000bb]student[/color][color=#007700](); [/color][color=#0000bb]student b [/color][color=#007700]= new [/color][color=#0000bb]student[/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]"nhập thông tin học sinh a:"[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]input[/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]"nhập thông tin học sinh b:"[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]input[/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]"học sinh a:"[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]show[/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]"học sinh b:"[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]show[/color][color=#007700](); [/color][color=#ff8000]//so sánh: [/color][color=#007700]if ([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb [/color][color=#007700]== [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/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]"hai học sinh có điểm bằng nhau"[/color][color=#007700]); } else if ([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]>[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/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]"học sinh a có điểm cao hơn"[/color][color=#007700]); } else [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"học sinh b có điểm cao hơn"[/color][color=#007700]); }} class [/color][color=#0000bb]student [/color][color=#007700]{ public [/color][color=#0000bb]string name[/color][color=#007700],[/color][color=#0000bb]lop[/color][color=#007700]; public [/color][color=#0000bb]float diemtb[/color][color=#007700]; private [/color][color=#0000bb]float tb1[/color][color=#007700], [/color][color=#0000bb]tb2[/color][color=#007700]; public [/color][color=#0000bb]void input[/color][color=#007700]() { [/color][color=#0000bb]scanner inp [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập vào họ và tên:"[/color][color=#007700]); [/color][color=#0000bb]name [/color][color=#007700]= [/color][color=#0000bb]inp[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"lớp:"[/color][color=#007700]); [/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]inp[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); do { [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"điểm trung bình:"[/color][color=#007700]); [/color][color=#0000bb]diemtb [/color][color=#007700]= [/color][color=#0000bb]inp[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); if (([/color][color=#0000bb]diemtb[/color][color=#007700]<[/color][color=#0000bb]0[/color][color=#007700])||([/color][color=#0000bb]diemtb[/color][color=#007700]>[/color][color=#0000bb]10[/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]"bạn nhập điểm sai, mời nhập lại!!"[/color][color=#007700]); } } while (([/color][color=#0000bb]diemtb[/color][color=#007700]<[/color][color=#0000bb]0[/color][color=#007700])||([/color][color=#0000bb]diemtb[/color][color=#007700]>[/color][color=#0000bb]10[/color][color=#007700])); } public [/color][color=#0000bb]void show[/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]"họ và tên:"[/color][color=#007700]+[/color][color=#0000bb]name[/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]"lớp:"[/color][color=#007700]+[/color][color=#0000bb]lop[/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]"điểm trung bình:"[/color][color=#007700]+[/color][color=#0000bb]diemtb[/color][color=#007700]); } }[[/color][color=#0000bb]php[/color][color=#007700]][/color]
-
05-06-2014, 07:00 AM #32Junior Member
- Ngày tham gia
- Jun 2015
- Bài viết
- 22
nộp bài
<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]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700];[/color][color=#ff8000]/**** @author admin*/[/color][color=#007700]class [/color][color=#0000bb]hocsinh [/color][color=#007700]{ [/color][color=#0000bb]string hoten[/color][color=#007700]; [/color][color=#0000bb]int lop[/color][color=#007700]; [/color][color=#0000bb]float diem[/color][color=#007700];}public class [/color][color=#0000bb]bai12 [/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]scanner nhapdulieu [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]hocsinh a [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập họ tên học sinh a: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập lớp học sinh a: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập điểm trung bình học sinh a: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); [/color][color=#0000bb]hocsinh b [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700](); [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập họ tên học sinh b: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập lớp học sinh b: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập điểm trung bình học sinh b: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]< [/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]>[/color][color=#0000bb]10 [/color][color=#007700]|| [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]< [/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]>[/color][color=#0000bb]10[/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]"bạn đã nhập sai điểm"[/color][color=#007700]); }else { if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]> [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diem[/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]"điểm trung bình của a lớn hơn"[/color][color=#007700]); }else if([/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diem [/color][color=#007700]< [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diem[/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]"điểm trung bình b lớn hơn"[/color][color=#007700]); }else { [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"hai sinh viên bằng nhau"[/color][color=#007700]); } } }}[/color]
</div>
</div>
-
07-07-2014, 07:00 AM #33Junior Member
- Ngày tham gia
- Sep 2014
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>b1 (move your mouse to reveal the content)</noscript>
b1 (open)
b1 (close)
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package edu[/color][color=#007700].[/color][color=#0000bb]dragon[/color][color=#007700].[/color][color=#0000bb]oot[/color][color=#007700];[/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700];public class [/color][color=#0000bb]accessmodifiers [/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]student a [/color][color=#007700]= new [/color][color=#0000bb]student[/color][color=#007700]();[/color][color=#0000bb]student b [/color][color=#007700]= new [/color][color=#0000bb]student[/color][color=#007700]();[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]inputdata[/color][color=#007700]();[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]inputdata[/color][color=#007700]();if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]compareaveragescores[/color][color=#007700]([/color][color=#0000bb]b[/color][color=#007700]) == [/color][color=#0000bb]0[/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]"diem trung binh cua hai hoc sinh bang nhau"[/color][color=#007700]);else if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]compareaveragescores[/color][color=#007700]([/color][color=#0000bb]b[/color][color=#007700]) == -[/color][color=#0000bb]1[/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]"diem trung binh cua a nho hon b"[/color][color=#007700]);else[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"diem trung binh cua a lon hon cua b"[/color][color=#007700]);}} class [/color][color=#0000bb]student[/color][color=#007700]{public [/color][color=#0000bb]string name[/color][color=#007700];public [/color][color=#0000bb]string [/color][color=#007700]class;public [/color][color=#0000bb]int averagescores[/color][color=#007700]; [/color][color=#0000bb]scanner in [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]);public [/color][color=#0000bb]void inputdata[/color][color=#007700](){[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"input name:"[/color][color=#007700]);[/color][color=#0000bb]name [/color][color=#007700]= [/color][color=#0000bb]in[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"input class:"[/color][color=#007700]);class = [/color][color=#0000bb]in[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"input averagescores:"[/color][color=#007700]);[/color][color=#0000bb]averagescores [/color][color=#007700]= [/color][color=#0000bb]in[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); } public [/color][color=#0000bb]int compareaveragescores[/color][color=#007700]([/color][color=#0000bb]student a[/color][color=#007700]){if([/color][color=#0000bb]averagescores [/color][color=#007700]== [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]averagescores[/color][color=#007700])return [/color][color=#0000bb]0[/color][color=#007700];else if([/color][color=#0000bb]averagescores [/color][color=#007700]< [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]averagescores[/color][color=#007700])return -[/color][color=#0000bb]1[/color][color=#007700];return [/color][color=#0000bb]1[/color][color=#007700];}}[/color]
</div>
</div>
-
-
07-29-2014, 07:00 AM #35Junior Member
- Ngày tham gia
- Apr 2016
- Bài viết
- 0
<div style="text-align: justify">bạn xem giúp mình họ tên học sinh thứ 2 không nhập được. cảm ơn</div><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=#ff8000]/** to change this license header, choose license headers in project properties.* to change this template file, choose tools | templates* and open the template in the editor.*/ [/color][color=#0000bb]package classnemo[/color][color=#007700];[/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700];class [/color][color=#0000bb]hocsinh[/color][color=#007700]{ public [/color][color=#0000bb]string hoten[/color][color=#007700]; public [/color][color=#0000bb]string lophoc[/color][color=#007700]; public [/color][color=#0000bb]float diemtrungbinh[/color][color=#007700];}public class [/color][color=#0000bb]classnemo [/color][color=#007700]{ [/color][color=#ff8000]/** * @param args the command line arguments */ [/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]scanner input [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]hocsinh a [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/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]"ten hoc sinh thu 1: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextline[/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]"lop nao: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lophoc [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextline[/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]"diem trung binh: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); [/color][color=#0000bb]hocsinh b [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/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]"ten hoc sinh thu 2: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextline[/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]"lop nao: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lophoc [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextline[/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]"diem trung binh: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]= [/color][color=#0000bb]input[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); if ([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]== [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/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]"hai hoc sinh co diem bang nhau"[/color][color=#007700]); }else{ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"hoc sinh co diem trung binh lon hon la: "[/color][color=#007700]); if ([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]> [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/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=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]); }else{ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700](+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]); } } } }[/color]
</div>
</div>
-
09-01-2014, 07:00 AM #36Junior Member
- Ngày tham gia
- Jan 2015
- Bài viết
- 0
Mã nguồn PHP:[color=#000000]
package mang[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]hocsinh [/color][color=#007700]{protected static [/color][color=#0000bb]string tena[/color][color=#007700], [/color][color=#0000bb]tenb [/color][color=#007700];protected static [/color][color=#0000bb]string lopa[/color][color=#007700], [/color][color=#0000bb]lopb [/color][color=#007700];protected static [/color][color=#0000bb]int diema [/color][color=#007700], [/color][color=#0000bb]diemb [/color][color=#007700];protected static [/color][color=#0000bb]scanner nhap [/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]);[/color][color=#ff8000]// nhap du lieu hoc sinh a //[/color][color=#007700]public static [/color][color=#0000bb]void nhaphocsinha[/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]"***hoc sinh a***" [/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ten :" [/color][color=#007700]);[/color][color=#0000bb]tena [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap lop :" [/color][color=#007700]); [/color][color=#0000bb]lopa [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap diem so :" [/color][color=#007700]); [/color][color=#0000bb]diema [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/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]"******" [/color][color=#007700]);}[/color][color=#ff8000]// nhap du lieu hoc sinh b //[/color][color=#007700]public static [/color][color=#0000bb]void nhaphocsinhb[/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]"***hoc sinh b***" [/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ten :" [/color][color=#007700]);[/color][color=#0000bb]tenb [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]tenb [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap lop :" [/color][color=#007700]); [/color][color=#0000bb]lopb [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap diem so :" [/color][color=#007700]); [/color][color=#0000bb]diemb [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/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]"******" [/color][color=#007700]);}[/color][color=#ff8000]// so sanh 2 hoc sinh //[/color][color=#007700]public static [/color][color=#0000bb]void sosanhhocsinh[/color][color=#007700](){ if ([/color][color=#0000bb]diema [/color][color=#007700]> [/color][color=#0000bb]diemb[/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]"hoc sinh "[/color][color=#007700]+[/color][color=#0000bb]tena [/color][color=#007700]+ [/color][color=#dd0000]" co diem cao hon."[/color][color=#007700]); else { if ([/color][color=#0000bb]diema[/color][color=#007700]==[/color][color=#0000bb]diemb[/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]"hai hoc sinh " [/color][color=#007700]+[/color][color=#0000bb]tena [/color][color=#007700]+ [/color][color=#dd0000]" va " [/color][color=#007700]+[/color][color=#0000bb]tenb [/color][color=#007700]+ [/color][color=#dd0000]" co diem bang nhau."[/color][color=#007700]); else [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"hoc sinh " [/color][color=#007700]+[/color][color=#0000bb]tenb [/color][color=#007700]+ [/color][color=#dd0000]"co diem cao hon."[/color][color=#007700]); }}[/color][color=#ff8000]// ham chinh //[/color][color=#007700]public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string args[/color][color=#007700][]){[/color][color=#0000bb]nhaphocsinha[/color][color=#007700]();[/color][color=#0000bb]nhaphocsinhb[/color][color=#007700]();[/color][color=#0000bb]sosanhhocsinh[/color][color=#007700]();} }[/color]
-
01-03-2015, 07:00 AM #37Junior Member
- Ngày tham gia
- Apr 2014
- Bài viết
- 0
cho ehỏi là khai báo tất cả là public thì có sao ko?
-
01-03-2015, 07:00 AM #38Junior Member
- Ngày tham gia
- Mar 2015
- Bài viết
- 0
Mã nguồn PHP:[color=#000000]
import java[/color][color=#007700].[/color][color=#0000bb]text[/color][color=#007700].[/color][color=#0000bb]simpledateformat[/color][color=#007700];[/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]date[/color][color=#007700];[/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700];class [/color][color=#0000bb]hocsinh [/color][color=#007700]{protected [/color][color=#0000bb]string name [/color][color=#007700];protected [/color][color=#0000bb]string lop[/color][color=#007700];protected [/color][color=#0000bb]float diemtrungbinh[/color][color=#007700]; }public class [/color][color=#0000bb]bai12 [/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 thangdiem[/color][color=#007700];[/color][color=#0000bb]hocsinh a [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700]();[/color][color=#0000bb]hocsinh b [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700]();[/color][color=#ff8000]// todo code application logic here[/color][color=#0000bb]scanner nhap [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]);[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ten hoc sinh a: "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name[/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ten hoc sinh b: "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap lop hoc sinh "[/color][color=#007700]+[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name[/color][color=#007700]+ [/color][color=#dd0000]" : "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap lop hoc sinh b " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" : " [/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lop[/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap thang diem : "[/color][color=#007700]); [/color][color=#0000bb]thangdiem [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap diem trung binh hoc sinh " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name[/color][color=#007700]+[/color][color=#dd0000]" : "[/color][color=#007700]); [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap diem trung binh hoc sinh b " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" : "[/color][color=#007700]); [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/color][color=#007700]=[/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();if (([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]> [/color][color=#0000bb]thangdiem[/color][color=#007700]) || ([/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]> [/color][color=#0000bb]thangdiem[/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]"loi: diem trung binh khong duoc cao hon thang diem"[/color][color=#007700]);}else{ if ([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]> [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/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]"hoc sinh "[/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" co diem trung binh la " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]+ [/color][color=#dd0000]" cao hon hoc sinh "[/color][color=#007700]+[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name[/color][color=#007700]+[/color][color=#dd0000]"co diem trung binh la " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]+ [/color][color=#dd0000]"."[/color][color=#007700]);}else{if ([/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/color][color=#007700]>[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh[/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]"hoc sinh "[/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" co diem trung binh la " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]+ [/color][color=#dd0000]" cao hon hoc sinh "[/color][color=#007700]+[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name[/color][color=#007700]+[/color][color=#dd0000]"co diem trung binh la" [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]+ [/color][color=#dd0000]"."[/color][color=#007700]);}else{[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"hoc sinh "[/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" va hoc sinh "[/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]name [/color][color=#007700]+ [/color][color=#dd0000]" co diem trung binh "[/color][color=#007700]+ [/color][color=#dd0000]"bang nhau la "[/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtrungbinh [/color][color=#007700]) ;}}}[/color][color=#0000bb]date time [/color][color=#007700]= new [/color][color=#0000bb]date[/color][color=#007700]();[/color][color=#0000bb]simpledateformat dinhdangthoigian [/color][color=#007700]= new [/color][color=#0000bb]simpledateformat[/color][color=#007700]([/color][color=#dd0000]"hh:mm:ss aa dd/mm/yyyy"[/color][color=#007700]);[/color][color=#0000bb]string showtime [/color][color=#007700]= [/color][color=#0000bb]dinhdangthoigian[/color][color=#007700].[/color][color=#0000bb]format[/color][color=#007700]([/color][color=#0000bb]time[/color][color=#007700].[/color][color=#0000bb]gettime[/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]"chuong trinh nay da ket thuc vao luc " [/color][color=#007700]+[/color][color=#0000bb]showtime[/color][color=#007700]); } }[/color]
-
-
01-27-2015, 07:00 AM #40Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 4
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>bài 1 (move your mouse to reveal the content)</noscript>
bài 1 (open)
bài 1 (close)
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package lesson12[/color][color=#007700];public class [/color][color=#0000bb]hocsinh [/color][color=#007700]{public [/color][color=#0000bb]string hoten[/color][color=#007700];public [/color][color=#0000bb]string lop[/color][color=#007700];public [/color][color=#0000bb]float diemtb[/color][color=#007700];} [/color][color=#0000bb]package lesson12[/color][color=#007700];[/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700];[/color][color=#0000bb]import [/color][color=#007700]static [/color][color=#0000bb]java[/color][color=#007700].[/color][color=#0000bb]lang[/color][color=#007700].[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700];public class [/color][color=#0000bb]truyvan [/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]scanner keyboard [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]hocsinh a [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700]();[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten cua hoc sinh a la: "[/color][color=#007700]);[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"lop cua hoc sinh a la: "[/color][color=#007700]);[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"diem trung binh cua hoc sinh a la: "[/color][color=#007700]);[/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); [/color][color=#0000bb]hocsinh b [/color][color=#007700]= new [/color][color=#0000bb]hocsinh[/color][color=#007700]();[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten cua hoc sinh b la: "[/color][color=#007700]);[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"lop cua hoc sinh b la: "[/color][color=#007700]);[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"diem trung binh cua hoc sinh b la: "[/color][color=#007700]);[/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb [/color][color=#007700]= [/color][color=#0000bb]keyboard[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb [/color][color=#007700]> [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]){[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin nguoi co diem cao hon la: " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]);}if([/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb [/color][color=#007700]< [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]){[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin nguoi co diem cao hon la: " [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]);}else{[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ca 2 nguoi co diem trung binh bang nhau va thong tin cua 2 nguoi nay nhu sau: " [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]a[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]lop [/color][color=#007700]+ [/color][color=#dd0000]"
" [/color][color=#007700]+ [/color][color=#0000bb]b[/color][color=#007700].[/color][color=#0000bb]diemtb[/color][color=#007700]);}}}[/color]
</div>
</div>
"căn do xuất tinh ngược này do lượng đường cao dẫn tới thương tổn dây thần kinh tại các cơ vòng khiến người bệnh bị xuất tinh ngược. thường ngày, khi xuất tinh thì cơ thắt cổ bọng đái đóng lại để...
Nguyên nhân và giải pháp cho tình trạng không xuất tinh ở phái mạnh?