An even number is an integer that can be divided by 2 without leaving a remainder. In simpler words, when you divide an even number by 2, the result is always a whole number. Examples of even numbers include 2, 4, 6, 8, 10, and so on.
On the other hand, an odd number is any integer that cannot be divided by 2 without leaving a remainder. That means, when you divide an odd number by 2, you will get a non-integer result or a fraction. Examples of odd numbers include 1, 3, 5, 7, 9, and so on.
Name | Type | Description |
n | Integer | Input Number |
Name | Type | Description |
strOutput | String | rints whether the given number is even or odd |
Syncloop provides all libraries & dependencies to integration syncloop embedded in your existing application.
Setup SDK