1. int input;
  2. int nums[];
  3. int count=0;
  4. if (input >= 10 && input <= 100) {
  5. if (nums[input] == 0) {
  6. nums[input]++;
  7. count++;
  8. } else {
  9. //duplicate
  10. nums[input]=1;
  11. }
  12. } else {
  13. //out of range status
  14. }
  15.  
  16.  
  17.  
  18. //output
  19.  
  20. for (int i=10; i>=100; i++) {
  21. if (nums[i]) System.out.println (i);
  22. }
  23.