+ 2
Write a program to input three digits and print all its possible combinations .
Suppose your input is 2,3 and 4 . Then it should print 234 , 243 ,432 , 423 , 324 ,342 .
1 Réponse
0
I know simplest solution, but I'll write by python.
from itertools import combinations
arr = input().split(" ")
print(list(combinations(arr, len(arr))))