以下のプログラムを実行すると、すべての数値が 0.0 として出力されます。混沌とした振る舞いを説明するためにこれをどのように修正できますか?
# A simple program illustrating chaotic behaviour
def main():
print ("This program illustrates a chaotic function")
x = int (float(input("Enter a number between 0 and 1: ")))
for i in range(10):
x = 3.9 * x * (1-x)
print (x)
main()