Code has been added to clipboard!

Solidity Pure Functions Example

Example
pragma solidity ^0.4.16;

contract cont {
    function func(uint x, uint y) pure returns (uint) {
        return x * (y + 42);
    }
}