solving this algorithm

Write a program which to print all numbers with four digits ABCD, so that if we change the places of the second and third digit it will result in new number (ACBD) bigger than the original with N, where N is input from keyboard.

I find it dificult to understand exactly what is needed here.Can someone explain or propose how to solve it?

Thank you.
I assume N is a four digit number typed in at the keyboard, is that correct?
Can you only change the second and third digit with each other or can any number be substituted for the second and third digit, as long as the result is bigger than N?

If any number, can they be the same number? e.g. AEED?
Last edited on
"with N" is very vague. I think you ought to ask your professor for clarification.
Topic archived. No new replies allowed.