Code has been added to clipboard!

Solidity Input and Output Parameters Example 1

Example
pragma solidity ^0.4.0;

contract SimpleContract {
    function arithmetics(uint _x, uint _y) returns (uint o_product, uint o_sum) {
        o_sum = _x + _y;
        o_product = _x * _y;
    }
}