tablas de multiplicar

--funcion q muestre las tablas de multiplicar del 1-5

create table multiplicaciones
(
n1 number (12),
n2 number (12),
resul number (12)
);
declare
n1 multiplicaciones.n1%TYPE;
n2 multiplicaciones.n2%TYPE;
resul multiplicaciones.resul%TYPE ;
begin
n1:=1;
n2:=1;
resul:=1*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=1;
n2:=2;
resul:=1*2;
insert into multiplicaciones values(n1,n2,resul);
n1:=1;
n2:=3;
resul:=1*3;
insert into multiplicaciones values(n1,n2,resul);
n1:=1;
n2:=4;
resul:=1*4;
insert into multiplicaciones values(n1,n2,resul);
n1:=1;
n2:=5;
resul:=1*5;
insert into multiplicaciones values(n1,n2,resul);
n1:=2;
n2:=1;
resul:=2*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=2;
n2:=3;
resul:=2*3;
insert into multiplicaciones values(n1,n2,resul);
n1:=2;
n2:=4;
resul:=2*4;
insert into multiplicaciones values(n1,n2,resul);
n1:=2;
n2:=5;
resul:=2*5;
insert into multiplicaciones values(n1,n2,resul);
n1:=3;
n2:=1;
resul:=3*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=3;
n2:=2;
resul:=3*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=3;
n2:=3;
resul:=3*3;
insert into multiplicaciones values(n1,n2,resul);
n1:=3;
n2:=4;
resul:=3*4;
insert into multiplicaciones values(n1,n2,resul);
n1:=3;
n2:=5;
resul:=3*5;
insert into multiplicaciones values(n1,n2,resul);
n1:=4;
n2:=1;
resul:=4*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=4;
n2:=2;
resul:=4*2;
insert into multiplicaciones values(n1,n2,resul);
n1:=4;
n2:=3;
resul:=4*3;
insert into multiplicaciones values(n1,n2,resul);
n1:=4;
n2:=4;
resul:=4*4;
insert into multiplicaciones values(n1,n2,resul);
n1:=4;
n2:=5;
resul:=4*5;
insert into multiplicaciones values(n1,n2,resul);
n1:=5;
n2:=1;
resul:=5*1;
insert into multiplicaciones values(n1,n2,resul);
n1:=5;
n2:=2;
resul:=5*2;
insert into multiplicaciones values(n1,n2,resul);
n1:=5;
n2:=3;
resul:=5*3;
insert into multiplicaciones values(n1,n2,resul);
n1:=5;
n2:=4;
resul:=4*5;
insert into multiplicaciones values(n1,n2,resul);
n1:=5;
n2:=5;
resul:=5*5;
insert into multiplicaciones values(n1,n2,resul);
end ;
select *from multiplicaciones;

Share this

Related Posts

Previous
Next Post »

Buscar en Wikipedia

Resultados de la búsqueda