Write a Python program that accepts an integer (x) and computes the value of x+xx+xxx
sample output:
>>>Enter the value of n: 5
>>>615
Answers
Answered by
1
Program:
n = int( input("Enter the value of n: ") )
sum = n+nn+nnn
print(sum)
Output:
Enter the value of n: 23
23
I hope it will help you☺️
Similar questions