Hello! Can you help me to create a programm,wich counts the number of permutations.
I want to use function "next_permutation".
Numbers must be entered from the keyboard(two number).
I will be grateful!!!!
C++ or C#
Number of permutations
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Sep 23, 2013, 6:28 AM EDT
http://www.cplusplus.com/reference/algorithm/next_permutation/
But, if only two numbers are to be input, then there are only two possible permutations so you don't really need to use this function.
This, of course, is C++ code. To my knowledge, there is no equivalent of next_permutation in the .NET Framework used by C# though it would be possible to write one.
Kira Polyakova9 reputationPosted Sep 23, 2013, 6:42 AM EDT