Menu Close

Python Program to Read a number n and Compute n+nn+nnn[Python3]…-FTC

Compute

Number=int(input())
Sum=0
for i in range(0,3):
  num=Number
  for j in range(0,i):
    num*=Number
  Sum=Sum+num
print(Sum)

INPUT_1:
           5
OUTPUT:
          155


Output:
Enter any number: 5
155

Output:
Enter any number: 10
1110

Output:
Enter any number: 55
169455

Output:
Enter any number: 66
291918

Output:
Enter any number: 100
1010100

Output:
Enter any number: 1000
1001001000

Output:
Enter any number: 3
39

Output:
Enter any number: 2
14


Scrshot


More Codes to Fcuk

Armstrong Number in python
Write a program to find the biggest even number
Replace every element with the greatest element on right side
Note To Frequency – C NOTE
FTC- Number Combinations in python
Python Program to Read a number n and Compute n+nn+nnn
Calculate the cube root of the user
Integer to Hexa,Octa and binary values
Given an array nums of integers, you can perform operations on the array
Write an algorithm to determine the encryption key
Given two integers L and R, find the count of numbers in the range [L, R] (inclusive)
Fibonacci series in python