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.5.1; | |
contract MultiNumberBettingV1{ | |
uint8 loserCount; | |
uint8 winnerCount; | |
uint8[3] numArray; | |
constructor (uint8 _p,uint8 _p2, uint8 _p3) public{ | |
numArray[0] = _p; | |
numArray[1] = _p2; | |
numArray[2] = _p3; |
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 OverflowandUnderflow{ | |
function overflow() public pure returns(uint256){ | |
uint256 max=2**256-1; | |
return max+1; | |
} | |
function underflow() public pure returns(uint256){ | |
uint256 min=0; |
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 Messenger{ | |
address owner; | |
string[] messages; | |
constructor() public{ | |
owner = msg.sender; | |
} | |