Computer Science, asked by hrududeotale3879, 10 months ago

Write a program to repeat the string ‘‘GOOD MORNING" n times. Here ‘n’ is an integer
entered by the user.

Answers

Answered by ramlaxman24
9

Answer:

INPUT:-

STRING "GOOD MORNING "

and " n "

CODE:-

n=int(input("enter a number ,how many times you want to repeat"))

str="GOOD MORNING "

for i in range (n):

print(str)

OUTPUT:-

"GOOD MORNING "

"GOOD MORNING "

......n times.

Answered by ssarkar110305
1

n=int(input('enter the number)

str1= "GOOD MORNING"

Print(str1*n)

pls mark this as brainliest

Similar questions