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
0
#takes input
num = int(input("Enter a number: "))
#prints result
print ( num + num*num + num*num*num )
___________________________________
thats all ik
btw the output should be 155
Answered by
0
Explanation:
- x=int(input("Enter a number x: "))
- temp=str(x)
- t1=temp+temp
- t2=temp+temp+temp
- comp=x+int(t1)+int(t2)
- print("The value is:",comp)
Mark as brainliest pls
Similar questions