LA PL-SQL 1

Wahai teman2 3ka03 …berikut adalah LA PL-SQL minggu 1…

Coding:

Soal 1

set serveroutput on
declare
x number;
y number;
begin
x:=5+2;
Y:=X+9;
dbms_output.put_line(to_char(x));
dbms_output.put_line(to_char(y));
end;
/


Soal2

set serveroutput on
declare
a number;
b number;
c number;
begin
a:=4;
b:=5;
c:=(a*b)/2;
dbms_output.put_line(‘Luas   : ‘||(to_char(c)));
end;
/

soal 3

set serveroutput on
declare
x number;
y number;
begin
x:=5;
y:=2;
dbms_output.put_line(‘Penjumlahan ‘||(to_char(x+y)));
dbms_output.put_line(‘Pengurangan ‘||(to_char(x-y)));
dbms_output.put_line(‘Perkalian ‘||(to_char(x*y)));
dbms_output.put_line(‘Pembagian ‘||(to_char(x/y)));
dbms_output.put_line(‘Sisa hasil bagi ‘||(to_char(x mod y)));
end;
/

Bagi yg ingin donlot printscreen-nya silahkan ajah…^^

4 Tanggapan to “LA PL-SQL 1”

  1. Tengkyu…

    Tp yg no.4 koq w ERROR muLu???

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: