Hello
I want to declare a varray of number and that should continuasly ask me
Enter any number:
like following.
Enter any Number:10
Enter any Number:20
Enter any Number:30
Enter any Number:40
Enter any Number:50
and after this i want to print these numbers on screen.
This is my code it doesnt work,
---------------------------------------------------------
Declare
type array1 is varray(5) of number;
begin
for i in array1.first..a rray1.last loop
array1(i):=&Ent er_any_number;
end loop;
for t in array1.first..a rray1.last loop
dbms_output.put _line('The output of array is: '||array1(t));
end loop;
end;
/
-----------------------------------------------------------
Please help me ,how to do it?
looking forword.
I want to declare a varray of number and that should continuasly ask me
Enter any number:
like following.
Enter any Number:10
Enter any Number:20
Enter any Number:30
Enter any Number:40
Enter any Number:50
and after this i want to print these numbers on screen.
This is my code it doesnt work,
---------------------------------------------------------
Declare
type array1 is varray(5) of number;
begin
for i in array1.first..a rray1.last loop
array1(i):=&Ent er_any_number;
end loop;
for t in array1.first..a rray1.last loop
dbms_output.put _line('The output of array is: '||array1(t));
end loop;
end;
/
-----------------------------------------------------------
Please help me ,how to do it?
looking forword.
Comment