write a python program to display GPTC PUNALUR ten times?
Answers
Answered by
1
Answer:
n=int(input('Enter a number to view it\'s 10 times tables:'))
print(n, end=' ')
print('x 1 =' n)
print(n, end=' ')
print('x 2 =' 2*n)
print(n, end=' ')
print('x 3 =' 3*n)
print(n, end=' ')
print('x 4 =' 4*n)
print(n, end=' ')
print('x 5 =' 5*n)
print(n, end=' ')
print('x 6 =' 6*n)
print(n, end=' ')
print('x 7 =' 7*n)
print(n, end=' ')
print('x 8 =' 8*n)
print(n, end=' ')
print('x 9 =' 9*n)
print(n, end=' ')
print('x 10 =' 10*n)
Please mark as Brainliest
Answered by
0
Python program and the output for the above question is listed below :
Output :
GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR GPTC PUNALUR
Explanation:
for x in range(10):#for loop which runs for the value of 0 to 9.
print("GPTC PUNALUR")#print the string up to 10 times.
Code Explanation :
- The above code is in the python language because of the question suggestion, which holds one for loop which runs for the value of x variable from 1 to 10.
- Then the print statement will print the string because the string is defined on the print statement with the help of double-quotes.
Learn more :
- Python : https://brainly.in/question/14689905
Similar questions