51.7k views
1 vote
Using a post-test while loop, write a program that lets users enter N floating point numbers and then calculates and displays their product. The value of N must be given by the user in the beginning of the program. Python CodeHs

1 Answer

0 votes

a = int(input("Input an integer : "))

n1 = int( "%s" % a )

n2 = int( "%s%s" % (a,a) )

n3 = int( "%s%s%s" % (a,a,a) )

print (n1+n2+n3)

is this what you want?

User Orysia
by
7.0k points