0% found this document useful (0 votes)
7 views3 pages

PL 4 Qeyd

Uploaded by

vahidliqahire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

PL 4 Qeyd

Uploaded by

vahidliqahire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

--3olculu vurma cedvelin qur; remote

-- 1.1 1.2 1.3 bank of baku


2.1 2.2 2.3
3.1 3.2 3.3
*/ 3500 700 2800USD 250-300
--bank respublika
*
***
*****
*******

A Z A D

/*
x2-5x+6=0 2,3
declare
a number := &A;
b number:=&B;
c number :=&C;
d number ;
x number(5,2);
x1 number(5,2);
x2 number(5,2);
begin
d:=b*b - 4*a*c;
if d<0 then
dbms_output.put_line(a||'x^2+'||b||'x+'||c||'=0 tenliyinin helli yoxdur');
elsif d=0 then x:=-b/(2*a);
dbms_output.put_line(a||'x^2+'||b||'x+'||c||'=0 tenliyinin yegane koku var x='||
x);
elsif d>0 then
x1:=(-b+sqrt(d))/(2*a);
x2:=(-b-sqrt(d))/(2*a);
dbms_output.put_line(a||'x^2+'||b||'x+'||c||'=0 tenliyinin 2 koku var x1='||
x1||' x2='||x2);
end if;
end;
/
*/

--loop
--simple,numeric for loop,while loop ,cursor for loop;
/*
loop
statement;
end loop;
*/

declare
v_counter number:=0;
v_result number;
begin
loop
v_counter:=v_counter+1;
v_result:=9*v_counter;
dbms_output.put_line('9'||'x'||v_counter||'='||v_result);
if v_counter>=10 then exit; end if;
end loop;
end;
/

declare
v_counter number:=0;
v_result number;
begin
loop
v_counter:=v_counter+1;
v_result:=9*v_counter;
dbms_output.put_line('9'||'x'||v_counter||'='||v_result);
exit when v_counter>=10;
end loop;
end;
/

declare
v_result number;
begin
for v_counter in reverse 1..10
loop
v_result:=9*v_counter;
dbms_output.put_line('9'||'x'||v_counter||'='||v_result);
end loop;
end;
/
set serveroutput on;

begin
for v_counter in reverse 1..10
loop
dbms_output.put_line(v_counter);
end loop;
end;
/

--while loop

while condition
loop
sgtatemnet;
end loop;
/

declare
v_counter number:=1;
v_result number;
begin
while v_counter<=10
loop
v_result:=v_counter*9;
dbms_output.put_line('9'||'x'||v_counter||'='||v_result);
v_counter:=v_counter+1;
end loop;
end;
/
declare
v_test boolean:=true;
v_counter number:=0;
begin
while v_test loop
v_counter:=v_counter+1;
dbms_output.put_line(v_counter);
if v_counter=10
then v_test:=false;
end if;
end loop;
end;
/

22-23 1ders interview sual; 24

You might also like