I want to write a program which take input and save the poistions of the array elements in another array.
let if i enter an array
A[0]= 4
A[1]=1
A[2]=2
A[3]=3
now the output array will hold
1
2
3
0
i-e the posistions of the array elements starting from the smallest number.
As 1 is the smallest number and it is on 1 posistion the output array will hold values like...
User Profile
Collapse
-
Finding Posistion of array elements
-
Listing All Permutations Of A Set
hello every one:
i want to write a program in which a set is entered.two numbers of the set is also entered.it will print all the combinations and permutations on the out put screen.
E-G
if i have a set {1,2,3,4,5}
if i select permutation for two numbers than it will print
e-g
1 2
2 1
1 3
3 1
1 4
4 1
1 5
5 1
2 3
3 2...
No activity results to display
Show More