remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/libs/remix-tests/tests/examples_5/lib/EvenOdd.sol

15 lines
306 B

pragma solidity >= 0.5.0 < 0.8.0;
contract EvenOdd {
/**
* @dev Tells whether a number is even or odd
* @param num Number to check
*/
function check(int num) public pure returns (string memory){
if(num % 2 == 0)
return "EVEN";
return "ODD";
}
}