Python Program to Read a Number n and Compute n+nn+nnn

bookmark

n=int(input("Enter a number n: "))
temp=str(n)
t1=temp+temp
t2=temp+temp+temp
comp=n+int(t1)+int(t2)
print("The value is:",comp)

 

Output


Enter a number n: 5
The value is: 615