Q. Write a script to print the following:


8

86

864

8642


Answer =


num = "8642"
for i in range (4) :
    print (num[ : i + 1])



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post