Python

Input an integer (n) and computes the value of a+aa+aaa in Python1 min read

Write a program that computes the value of a+aa+aaa+aaaa with a given digit as the value of a in Python.

Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.




Python Code:

 

Output:

 

 

Leave a Comment