Trang 12 của 13 Đầu tiênĐầu tiên ... 210111213 CuốiCuối
Kết quả 111 đến 120 của 124
  1. #111
    Ngày tham gia
    Feb 2015
    Bài viết
    0
    kiểm tra giúp mình nhé


    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]; public class [/color][color=#0000bb]jv2 [/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=#ff8000]// todo auto-generated method stub[/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]int tuoi[/color][color=#007700];[/color][color=#0000bb]float toan[/color][color=#007700],[/color][color=#0000bb]ly[/color][color=#007700],[/color][color=#0000bb]hoa[/color][color=#007700]; [/color][color=#0000bb]string ten[/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]"nhap ten : "[/color][color=#007700]);[/color][color=#0000bb]ten[/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap tuoi : "[/color][color=#007700]);[/color][color=#0000bb]tuoi[/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap diem toan : "[/color][color=#007700]);[/color][color=#0000bb]toan[/color][color=#007700]=[/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/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]"nhap diem ly : "[/color][color=#007700]);[/color][color=#0000bb]ly[/color][color=#007700]=[/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/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]"nhap diem hoa : "[/color][color=#007700]);[/color][color=#0000bb]hoa[/color][color=#007700]=[/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); if(([/color][color=#0000bb]toan[/color][color=#007700]+[/color][color=#0000bb]ly[/color][color=#007700]+[/color][color=#0000bb]hoa[/color][color=#007700])/[/color][color=#0000bb]3[/color][color=#007700]>[/color][color=#0000bb]8[/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]"ban "[/color][color=#007700]+[/color][color=#0000bb]ten[/color][color=#007700]+[/color][color=#dd0000]" duoc hoc sinh gioi"[/color][color=#007700]);if(([/color][color=#0000bb]toan[/color][color=#007700]+[/color][color=#0000bb]ly[/color][color=#007700]+[/color][color=#0000bb]hoa[/color][color=#007700])/[/color][color=#0000bb]3[/color][color=#007700]<[/color][color=#0000bb]8 [/color][color=#007700]&& ([/color][color=#0000bb]toan[/color][color=#007700]+[/color][color=#0000bb]ly[/color][color=#007700]+[/color][color=#0000bb]hoa[/color][color=#007700])/[/color][color=#0000bb]3 [/color][color=#007700]>[/color][color=#0000bb]5[/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]"ban "[/color][color=#007700]+[/color][color=#0000bb]ten[/color][color=#007700]+[/color][color=#dd0000]" duoc hoc sinh kha"[/color][color=#007700]);if(([/color][color=#0000bb]toan[/color][color=#007700]+[/color][color=#0000bb]ly[/color][color=#007700]+[/color][color=#0000bb]hoa[/color][color=#007700])/[/color][color=#0000bb]3[/color][color=#007700]<[/color][color=#0000bb]5[/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]"ban "[/color][color=#007700]+[/color][color=#0000bb]ten[/color][color=#007700]+[/color][color=#dd0000]" duoc hoc sinh yeu"[/color][color=#007700]); } }[/color] 

  2. #112
    Ngày tham gia
    Mar 2014
    Bài viết
    0
    Mã:
    import java.util.scanner;
    public class bai_9_1 {
    	public static void main(string[] args) {
    		scanner nhap = new scanner(system.in);
    		string[] mang = new string[100];
    		int a=1,i;
    		system.out.println("nhap vao so a =");
    		a = nhap.nextint();
    		for(i=0;i<a;i++){
    			system.out.println("nhập vao sinh viên thứ "+(i+1));
    			mang[i]= nhap.nextline();
    		}
    		for (i=0;i< a; i++){
    			system.out.println("sinh viên thứ "+ (i+1)+" là :"+ mang[i]);
    		}
    	}
     
    }
    @tiasangmoi92
    tiasangmoi92bạn nào pro xem giúp mình cái bài này với sao mình gán số a trực tiếp thì vòng for chạy đúng mà mình gán bằng cách nhập từ bàn phím thì phần nhập ở trong vòng for tự bỏ đi 1 lần lặp.
    phần chạy nó hiện như sau


    Mã:
    run:
    nhap vao so a =
    2
    nhập vao sinh viên thứ 1
    nhập vao sinh viên thứ 2
    pham hoang
    sinh viên thứ 1 là :
    sinh viên thứ 2 là :pham hoang
    build successful (total time: 11 seconds)
    thanks

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

    bai (open)
    bai (close)

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


    Mã:
    package bai.pkg1;
     
     
     
     
    import java.util.scanner;
     
     
     
     
    /**
     *
     * @author legen_000
     */
    public class bai1 {
     
     
     
     
    	/**
    	 * @param args the command line arguments
    	 */
    	public static void main(string[] args) {
    		
    		// todo code application logic here
    		
      
     
     
     
     
    		java.util.scanner scan01 = new scanner(system.in);
    		string name; float t,l,h,tb;
    		system.out.print("nhap ten:");
    		name= scan01.nextline();
    		system.out.println("nhap diem toan: "); t = scan01.nextfloat();
    		system.out.println("nhap diem li: "); l =scan01.nextfloat();
    		system.out.println("nhap diem hoa: "); h = scan01.nextfloat();
    		tb= (t+h+l)/3;
    		if ((t>10 ||  t<0) || (l>10  || l<0) || (h>10  || h<0)) {
    			system.out.println("bạn đã nhập sai 1 trong các giá trị");
    		}else{
    			if(tb>=8) {
    				system.out.println("gioi");
    			}else{
    				if (tb>=6.5) {
    					system.out.println("kha");
    				}else{ if (tb>=5) {
    					system.out.println("trung binh");
    				}else{ system.out.println("yeu");
    					
    				} 
    			}
    		}	
    		
    		
    		
    	}
    	
    	
    }
    }
    </blockquote></div>
    </div>
    </div>

  4. #114
    Ngày tham gia
    Jul 2015
    Bài viết
    3
    Mã nguồn PHP:
    [color=#000000]
    package bai7[/color][color=#007700].[/color][color=#0000bb]demo[/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]bai7demo [/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]string hoten[/color][color=#007700]; [/color][color=#0000bb]int namsinh[/color][color=#007700], [/color][color=#0000bb]tuoi[/color][color=#007700]; [/color][color=#0000bb]float toan[/color][color=#007700], [/color][color=#0000bb]ly[/color][color=#007700], [/color][color=#0000bb]hoa[/color][color=#007700], [/color][color=#0000bb]tb[/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]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap ten sinh vien: "[/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap nam sinh: "[/color][color=#007700]); [/color][color=#0000bb]namsinh [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); while ([/color][color=#0000bb]namsinh [/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]"moi nhap lai nam sinh: "[/color][color=#007700]); [/color][color=#0000bb]namsinh [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); while ([/color][color=#0000bb]namsinh [/color][color=#007700]> [/color][color=#0000bb]0[/color][color=#007700]) { break; } } [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap tuoi: "[/color][color=#007700]); [/color][color=#0000bb]tuoi [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); while ([/color][color=#0000bb]tuoi [/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]"moi nhap lai tuoi: "[/color][color=#007700]); [/color][color=#0000bb]tuoi [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); while ([/color][color=#0000bb]tuoi [/color][color=#007700]> [/color][color=#0000bb]0[/color][color=#007700]) { break; } } [/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 toan: "[/color][color=#007700]); [/color][color=#0000bb]toan [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while (([/color][color=#0000bb]toan [/color][color=#007700]< [/color][color=#0000bb]0[/color][color=#007700]) || ([/color][color=#0000bb]toan [/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]"moi nhap lai diem toan: "[/color][color=#007700]); [/color][color=#0000bb]toan [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while ([/color][color=#0000bb]toan [/color][color=#007700]>= [/color][color=#0000bb]0 [/color][color=#007700]&& [/color][color=#0000bb]toan [/color][color=#007700]>= [/color][color=#0000bb]10[/color][color=#007700]) { break; } } [/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 ly: "[/color][color=#007700]); [/color][color=#0000bb]ly [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while (([/color][color=#0000bb]ly [/color][color=#007700]< [/color][color=#0000bb]0[/color][color=#007700]) || ([/color][color=#0000bb]ly [/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]"moi nhap lai diem ly: "[/color][color=#007700]); [/color][color=#0000bb]ly [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while (([/color][color=#0000bb]ly [/color][color=#007700]>= [/color][color=#0000bb]0[/color][color=#007700]) && ([/color][color=#0000bb]ly [/color][color=#007700]>= [/color][color=#0000bb]10[/color][color=#007700])) { break; } } [/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 hoa: "[/color][color=#007700]); [/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while (([/color][color=#0000bb]hoa [/color][color=#007700]< [/color][color=#0000bb]0[/color][color=#007700]) || ([/color][color=#0000bb]hoa [/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]"moi nhap lai diem hoa: "[/color][color=#007700]); [/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); while (([/color][color=#0000bb]hoa [/color][color=#007700]>= [/color][color=#0000bb]0[/color][color=#007700]) && ([/color][color=#0000bb]hoa [/color][color=#007700]>= [/color][color=#0000bb]10[/color][color=#007700])) { break; } } [/color][color=#0000bb]tb [/color][color=#007700]= ([/color][color=#0000bb]toan [/color][color=#007700]+ [/color][color=#0000bb]ly [/color][color=#007700]+ [/color][color=#0000bb]hoa[/color][color=#007700]) / [/color][color=#0000bb]3[/color][color=#007700]; if (([/color][color=#0000bb]tb [/color][color=#007700]>= [/color][color=#0000bb]0[/color][color=#007700]) && ([/color][color=#0000bb]tb [/color][color=#007700]<= [/color][color=#0000bb]4[/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]"xep loai :" [/color][color=#007700]+ [/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]":hoc sinh yeu"[/color][color=#007700]); } else if (([/color][color=#0000bb]tb [/color][color=#007700]> [/color][color=#0000bb]4[/color][color=#007700]) && ([/color][color=#0000bb]tb [/color][color=#007700]<= [/color][color=#0000bb]6[/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]"xep loai :" [/color][color=#007700]+ [/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]":hoc sinh trung binh"[/color][color=#007700]); } else if (([/color][color=#0000bb]tb [/color][color=#007700]> [/color][color=#0000bb]6[/color][color=#007700]) && [/color][color=#0000bb]tb [/color][color=#007700]<= [/color][color=#0000bb]8[/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]"xep loai :" [/color][color=#007700]+ [/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]":hoc sinh kha"[/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]"xep loai :" [/color][color=#007700]+ [/color][color=#0000bb]hoten [/color][color=#007700]+ [/color][color=#dd0000]":hoc sinh gioi"[/color][color=#007700]); } }}[/color] 

  5. #115
    Ngày tham gia
    Nov 2015
    Bài viết
    5
    cùng đóng góp chút có gì sai sót mọi người chỉ em thêm nhé
    package scaner;
    import java.util.scanner;
    public class bt_scaner {
    static scanner input = new scanner(system.in);
    public static void main(string[] agrs) {
    /*
    * bài 1: từ màn hình console, nhập dữ liệu của 1 sinh viên là họ và
    * tên, năm sinh, điểm toán, lý , hóa (kiểu số thực). dựa vào điểm trung
    * bình 3 môn in ra đó là học sinh giỏi, khá hay trung bình
    */
    string ho;
    string ten;
    string namsinh;
    int toan, ly, hoa;
    float tb;
    system.out.print("nhap vao ho cua ban:");
    ho = input.nextline();
    system.out.print("nhap vao ten cua ban:");
    ten = input.nextline();
    system.out.print("nhap vao nam sinh:");
    namsinh = input.nextline();
    system.out.print("nhap diem mon toan:");
    toan = input.nextint();
    system.out.println("nhap vao diem mon ly:");
    ly = input.nextint();
    system.out.println("nhap vao diem mon hoa:");
    hoa = input.nextint();
    tb = (toan + ly + hoa) / 3;
    if (tb <= 5) {
    system.out.println(ho + "\t" + ten + "
    " + "nam sinh:" +namsinh + "
    " + "toan:" + toan + "
    "
    + "ly:" + ly + "
    " + "hoa:" + hoa + "
    " + "tb:" + tb
    + "
    " + "xep loai:trung binh");
    }else if (tb>5 && tb <=8) {
    system.out.println(ho + "\t" + ten+ "
    " + "nam sinh:" +namsinh + "
    " + "toan:" + toan + "
    "
    + "ly:" + ly + "
    " + "hoa:" + hoa + "
    " + "tb:" + tb
    + "
    " + "xep loai:kha");
    }else
    system.out.println(ho + "\t" + ten+ "
    " + "nam sinh:" +namsinh + "
    " + "toan:" + toan + "
    "
    + "ly:" + ly + "
    " + "hoa:" + hoa + "
    " + "tb:" + tb
    + "
    " + "xep loai:gioi");
    }
    }

  6. #116
    Ngày tham gia
    Mar 2014
    Bài viết
    0
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>nộp bài (move your mouse to reveal the content)</noscript>

    nộp bài (open)
    nộp bài (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]thong[/color][color=#007700].[/color][color=#0000bb]test[/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]bai2 [/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]string hoten[/color][color=#007700];[/color][color=#0000bb]float toan[/color][color=#007700], [/color][color=#0000bb]ly[/color][color=#007700], [/color][color=#0000bb]hoa[/color][color=#007700], [/color][color=#0000bb]tb[/color][color=#007700];[/color][color=#0000bb]int namsinh[/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]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập họ tên: "[/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 năm sinh: "[/color][color=#007700]);[/color][color=#0000bb]namsinh [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();while ([/color][color=#0000bb]namsinh [/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]"nhập sai năm sinh vui lòng nhập lại: "[/color][color=#007700]);[/color][color=#0000bb]namsinh [/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]"điểm toán: "[/color][color=#007700]);[/color][color=#0000bb]toan [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();while ([/color][color=#0000bb]toan [/color][color=#007700]> [/color][color=#0000bb]10 [/color][color=#007700]|| [/color][color=#0000bb]toan [/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]"nhập sai điểm vui lòng nhập lại: "[/color][color=#007700]);[/color][color=#0000bb]toan [/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]"điểm lý: "[/color][color=#007700]);[/color][color=#0000bb]ly [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();while ([/color][color=#0000bb]ly [/color][color=#007700]> [/color][color=#0000bb]10 [/color][color=#007700]|| [/color][color=#0000bb]ly [/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]"nhập sai điểm vui lòng nhập lại: "[/color][color=#007700]);[/color][color=#0000bb]ly [/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]"điểm hóa: "[/color][color=#007700]);[/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();while ([/color][color=#0000bb]hoa [/color][color=#007700]> [/color][color=#0000bb]10 [/color][color=#007700]|| [/color][color=#0000bb]hoa [/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]"nhập sai điểm vui lòng nhập lại: "[/color][color=#007700]);[/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();}[/color][color=#0000bb]tb [/color][color=#007700]= (float) ([/color][color=#0000bb]toan [/color][color=#007700]+ [/color][color=#0000bb]ly [/color][color=#007700]+ [/color][color=#0000bb]hoa[/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]"tên học sinh: " [/color][color=#007700]+ [/color][color=#0000bb]hoten[/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]"năm sinh: " [/color][color=#007700]+ [/color][color=#0000bb]namsinh[/color][color=#007700]);if ([/color][color=#0000bb]tb [/color][color=#007700]>= [/color][color=#0000bb]8[/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ếp loại học lực giỏi"[/color][color=#007700]);} else {if ([/color][color=#0000bb]tb [/color][color=#007700]>= [/color][color=#0000bb]6.5[/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ếp loại học lực khá"[/color][color=#007700]);} else {if ([/color][color=#0000bb]tb [/color][color=#007700]>= [/color][color=#0000bb]5[/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ếp loại học lực trung bình"[/color][color=#007700]);} else {if ([/color][color=#0000bb]tb [/color][color=#007700]>= [/color][color=#0000bb]3.5[/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ếp loại học lực yếu"[/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]"xếp loại học lực kém"[/color][color=#007700]);}}}}}}[/color] 
    </blockquote></div>
    </div>
    </div>

  7. #117
    Ngày tham gia
    Dec 2014
    Bài viết
    0
    Mã nguồn PHP:
    [color=#000000]
    [/color][color=#ff8000]/*từ màn hình console, nhập dữ liệu của 1 sinh viên là họ và tên, năm sinh,điểm toán, lý , hóa (kiểu số thực).dựa vào điểm trung bình 3 môn in ra đó là học sinh giỏi, khá hay trung bình*/[/color][color=#0000bb]package hoc[/color][color=#007700].[/color][color=#0000bb]lap[/color][color=#007700].[/color][color=#0000bb]trinh[/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=#ff8000]/**** @author win8*/[/color][color=#007700]public class [/color][color=#0000bb]bt1unit7 [/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]string ten[/color][color=#007700];[/color][color=#0000bb]int tuoi[/color][color=#007700];[/color][color=#0000bb]float dt[/color][color=#007700], [/color][color=#0000bb]dl[/color][color=#007700], [/color][color=#0000bb]dh[/color][color=#007700]; [/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap ten sv :"[/color][color=#007700]);[/color][color=#0000bb]ten [/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap tuoi sv :"[/color][color=#007700]);[/color][color=#0000bb]tuoi [/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]"nhap diem toan"[/color][color=#007700]); [/color][color=#0000bb]dt [/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap diem ly"[/color][color=#007700]); [/color][color=#0000bb]dl [/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].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap diem hoa"[/color][color=#007700]); [/color][color=#0000bb]dh [/color][color=#007700]= [/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700](); [/color][color=#ff8000]//xuat;[/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 sv vua nhap : " [/color][color=#007700]+[/color][color=#0000bb]ten[/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]"tuoi sv vua nhap : " [/color][color=#007700]+[/color][color=#0000bb]tuoi[/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]"dt sv vua nhap : " [/color][color=#007700]+[/color][color=#0000bb]dt[/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]"dl sv vua nhap : " [/color][color=#007700]+[/color][color=#0000bb]dl[/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]"dh sv vua nhap : " [/color][color=#007700]+[/color][color=#0000bb]dh[/color][color=#007700]);[/color][color=#0000bb]float dtb[/color][color=#007700];[/color][color=#0000bb]dtb [/color][color=#007700]= ([/color][color=#0000bb]dt [/color][color=#007700]+[/color][color=#0000bb]dl [/color][color=#007700]+ [/color][color=#0000bb]dh[/color][color=#007700])/[/color][color=#0000bb]3[/color][color=#007700];if ([/color][color=#0000bb]dtb [/color][color=#007700]>= [/color][color=#0000bb]8[/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]"loai gioi"[/color][color=#007700]);}if ([/color][color=#0000bb]dtb [/color][color=#007700]>=[/color][color=#0000bb]6.5 [/color][color=#007700]&& [/color][color=#0000bb]dtb [/color][color=#007700]< [/color][color=#0000bb]8[/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]"loai kha"[/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]"loai tb"[/color][color=#007700]);}}}[/color] 

  8. #118
    Ngày tham gia
    Oct 2014
    Bài viết
    0
    mình muốn hỏi là ở đoạn này :
    int tuoi;
    string ten;
    scanner nhapdulieu = new scanner(system.in);

    system.out.print("nhập tên: ");
    ten = nhapdulieu.nextline();

    system.out.print("nhập tuổi: ");
    tuoi = nhapdulieu.nextint();

    mình muốn nhập thêm địa chỉ và mình đã thêm như sau :

    int tuoi;
    string ten.diachi;
    scanner nhapdulieu = new scanner(system.in);

    system.out.print("nhập tên: ");
    ten = nhapdulieu.nextline();

    system.out.print("nhập tuổi: ");
    tuoi = nhapdulieu.nextint();

    system.out.print("nhập địa chỉ: ");
    diachi = nhapdulieu.nextline();


    system.out.println("
    tên vừa nhập:" + ten);
    system.out.println("tuổi vừa nhập: " + tuoi);
    system.out.println("địa chỉ vừa nhập:" + diachi);

    //đoạn in đậm là đoạn mình thêm vào

    khi chạy ctr thì sau khi nhập tuổi ctr tự động kết thúc và in ra kết quả như này :

    tên vừa nhập : abc.
    tuổi vừa nhập : 25
    dia chi vừa nhập :


    nghĩa là ctr bỏ qua luôn bước nhập địa chỉ mà in ra nguyên cái câu : địa chỉ vừa nhập .

    theo mình nghĩ chắc có vấn đề ở nextint của dòng nhập tuổi , khi mình thử cho đoạn nhập địa chỉ lên trước nhập tuổi thì ctr cho nhập như btg .
    vậy các bạn có thể xem giúp mình xem muốn nhập địa chỉ sau khi nhập tuổi thì sửa code như thế nào cho đúng

  9. #119
    Ngày tham gia
    Apr 2015
    Bài viết
    0
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>bài tập (move your mouse to reveal the content)</noscript>

    bài tập (open)
    bài tập (close)

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


    Mã nguồn PHP:
    [color=#000000]
    package javaapplication2[/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]javaapplication2 [/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]string ten[/color][color=#007700]; [/color][color=#0000bb]int toan[/color][color=#007700],[/color][color=#0000bb]li[/color][color=#007700],[/color][color=#0000bb]hoa[/color][color=#007700]; [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhập tên: "[/color][color=#007700]); [/color][color=#0000bb]ten [/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 điểm toán: "[/color][color=#007700]); [/color][color=#0000bb]toan [/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 lý: "[/color][color=#007700]); [/color][color=#0000bb]li [/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 hóa: "[/color][color=#007700]); [/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700](); [/color][color=#0000bb]int tb [/color][color=#007700]= ([/color][color=#0000bb]toan[/color][color=#007700]+[/color][color=#0000bb]li[/color][color=#007700]+[/color][color=#0000bb]hoa[/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]"điểm tb của "[/color][color=#007700]+[/color][color=#0000bb]ten[/color][color=#007700]+[/color][color=#dd0000]" là "[/color][color=#007700]+[/color][color=#0000bb]tb[/color][color=#007700]); } }[/color] 
    </blockquote></div>
    </div>
    </div>

  10. #120
    Ngày tham gia
    May 2014
    Bài viết
    0
    cảm ơn bạn. mong được học hỏi thêm.
    <div class="bbcodeblock bbcodequote bbcmspoilerblock">
    <div class="attribution type"><noscript>code (move your mouse to reveal the content)</noscript>

    code (open)
    code (close)

    </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];public class [/color][color=#0000bb]nhapdl_console[/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]string ht[/color][color=#007700];[/color][color=#0000bb]int ns[/color][color=#007700];[/color][color=#0000bb]float toan[/color][color=#007700], [/color][color=#0000bb]ly[/color][color=#007700], [/color][color=#0000bb]hoa[/color][color=#007700], [/color][color=#0000bb]dtb[/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]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap vao ho ten sinh vien : "[/color][color=#007700]);[/color][color=#0000bb]ht [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/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]"nhap vao nam sinh sinh vien : "[/color][color=#007700]);[/color][color=#0000bb]ns [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]();}while([/color][color=#0000bb]ns [/color][color=#007700]< [/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]ns [/color][color=#007700]> [/color][color=#0000bb]2015[/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]"nhap diem toan cho sinh vien : "[/color][color=#007700]);do{[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"diem toan : "[/color][color=#007700]);[/color][color=#0000bb]toan [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();}while([/color][color=#0000bb]toan[/color][color=#007700]<[/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]toan[/color][color=#007700]>[/color][color=#0000bb]10[/color][color=#007700]);do{[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"diem ly : "[/color][color=#007700]);[/color][color=#0000bb]ly [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();}while([/color][color=#0000bb]ly[/color][color=#007700]<[/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]ly[/color][color=#007700]>[/color][color=#0000bb]10[/color][color=#007700]);do{[/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"diem hoa : "[/color][color=#007700]);[/color][color=#0000bb]hoa [/color][color=#007700]= [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]();}while([/color][color=#0000bb]hoa[/color][color=#007700]<[/color][color=#0000bb]0 [/color][color=#007700]|| [/color][color=#0000bb]hoa[/color][color=#007700]>[/color][color=#0000bb]10[/color][color=#007700]);[/color][color=#0000bb]dtb [/color][color=#007700]= ([/color][color=#0000bb]toan [/color][color=#007700]+ [/color][color=#0000bb]ly [/color][color=#007700]+ [/color][color=#0000bb]hoa[/color][color=#007700])/[/color][color=#0000bb]3[/color][color=#007700];if([/color][color=#0000bb]dtb [/color][color=#007700]>= [/color][color=#0000bb]8[/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]"sinh vien xep loai gioi."[/color][color=#007700]);else if([/color][color=#0000bb]dtb [/color][color=#007700]>= [/color][color=#0000bb]6[/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]"sinh vien xep loai kha."[/color][color=#007700]);else if([/color][color=#0000bb]dtb [/color][color=#007700]>= [/color][color=#0000bb]5[/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]"sinh vien xep loai trung binh."[/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]"sinh vien xep loai yeu."[/color][color=#007700]);}}[/color] 
    </blockquote></div>
    </div>
    </div>

Trang 12 của 13 Đầu tiênĐầu tiên ... 210111213 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
  •