Question

please provide a detailed version of a project for checking a number is odd or even

  • 15 March 2022
  • 2 replies
  • 18 views

please provide a detailed version of a project for checking a number is odd or even


2 replies

"^\d*[13579]$"

"^\d*[02468]$"

 

 

Userlevel 3
Badge +7

You can do it in taskbot, using variable operation result = number % 2

if result == 0 then

Message Box " is even"

else

Message Box " is odd"

Reply