Computer Science, asked by dolly4964, 11 months ago

write a python program to input a 4 digit number and print all the possible combinations.


plz answer this
best answer would be brainliest​

Answers

Answered by sundushameed99
1

Answer:

Explanation:

a=int(input("Enter first number:"))

b=int(input("Enter second number:"))

c=int(input("Enter third number:"))

d=[]

d.append(a)

d.append(b)

d.append(c)

for i in range(0,3):

   for j in range(0,3):

       for k in range(0,3):

           if(i!=j&j!=k&k!=i):

               print(d[i],d[j],d[k])

Similar questions