Last active
November 12, 2018 12:11
-
-
Save BogdanHabic/2ac1df3c22379930a8a72bed314658ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
contract Calculator { | |
uint c; | |
function add(uint a, uint b) public { | |
c = a + b; | |
} | |
function sub(uint a, uint b) public { | |
c = a - b; | |
} | |
function mul(uint a, uint b) public { | |
c = a * b; | |
} | |
function div(uint a, uint b) public { | |
c = a / b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment