Computer Science, asked by aryamankhanna3901, 9 months ago

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 pranab77
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 sambhavgautam6
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