11 lines
288 B
Python
11 lines
288 B
Python
def rectangle(nbLignes: int,nbColonnes: int,motif: str):
|
|
for ligne in range(nbLignes):
|
|
for colonne in range(nbColonnes):
|
|
print(motif, end="")
|
|
print()
|
|
|
|
nbLignes = int(input())
|
|
nbColonnes = int(input())
|
|
motif = input()
|
|
|
|
rectangle(nbLignes, nbColonnes, motif) |