Studio X array accept 5 positive number not negative or 0

Hi! Can you help me create a program that will accept 5 positive numbers and don’t accept negative numbers and 0, and will also display the highest to lowest numbers. Using array? My UiPath updated and I can’t seem to this only thing

Try to go step by step. Let us know where u are getting stuck.

  • Create an array called numbers to store the 5 positive integers.
  • Use a while loop to fill the array with 5 valid numbers.
    int.TryParse can be used to ensure the user inputs a valid integer.
    combined with checking if the number is > 0 to accept only positive integers.
  • After collecting all numbers, sort the array in descending order and then print the numbers.