A common example to help new RPA developers learn conditional and iterative logic is to implement a little Number Guesser game.
This UiPath Challenge gets the user to do exactly that.