Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- matriz=[]
- filas=int(input("cantidad de filas: "))
- columnas= int(input("cantidad de columnas: "))
- for i in range(filas):
- matriz.append([0]*columnas)
- for f in range(filas):
- for g in range(columnas):
- matriz[f][g]= int(input("elemento ( %d, %d ): " % (f,g)))
- print(matriz)
- n=int(input("ingrese la fila a calcular: "))
- producto=[]
- for i in range (filas):
- producto.append(matriz[n][i])
- print(producto)
- for i in range(len(producto)):
- print(i*producto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement