Professional Documents
Culture Documents
Practical 7
Practical 7
Practical 7
return int
as
A int :=24;
begin
return A*A;
end;
Run cmd
Function created.
Output
FUNC1
576
return varchar
as
a int:=24;
b int:=32;
c int;
begin
a:=a;
c:=a;
a:=b;
b:=c;
return('a is now:'||a||''||'and b is now:'||b);
end;
Run Cmd
Function created.
Output
a is now:32and b is now:24
return varchar
as
a int:=12;
b int:=24;
begin
if(a>b)then
else
end if
end;
Run Cmd
Function created.
Output :
FUNC3
return varchar
as
len int;
str1 varchar(30);
begin
len:=length(str);
str1:=str1|| substr(str,I,1);
end loop;
end;
Run Cmd
Function created.
Output
REV3