Skip to content

Instantly share code, notes, and snippets.

View thiagonobrega's full-sized avatar

Thiago Nóbrega thiagonobrega

  • UFCG
  • Campina Grande, Brazil
View GitHub Profile
@thiagonobrega
thiagonobrega / CCContract.sol
Created February 14, 2019 11:49
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.4-nightly.2019.2.7+commit.caecdfab.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract CCContract{
/** @dev Calculates a rectangle's surface and perimeter.
* @param w Width of the rectangle.
* @param h Height of the rectangle.
* @return s The calculated surface.
* @return p The calculated perimeter.
*/