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.
19 lines
252 B
19 lines
252 B
6 years ago
|
pragma solidity ^0.5.1;
|
||
|
|
||
|
contract Calc {
|
||
|
|
||
|
uint count;
|
||
|
|
||
|
function getCount() public returns (uint) {
|
||
|
|
||
|
return count;
|
||
|
|
||
|
}
|
||
|
|
||
|
function add(uint a, uint b) public returns (uint) {
|
||
|
count++;
|
||
|
return a + b;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|