I am trying to print number in descending order say like 9,8,7,6,5,4,3,2,1. For this I’ve taken input from user and trying to decremented that input using do while loop and assign activity as attached:
I’ve defined a variable num and under assign activity I am assigning variable a value as num-1. Is this the correct way to decrement the value.
Edit: I uploaded a version which converts the strings to Int32 to ensure it is sorted correctly. Using strings “101” would come before “75”. Converting to Int32 resolves this.