Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitscript authored Sep 17, 2022
1 parent 49c93f4 commit 234696c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 05Day-ReturnRemainder.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;

contract day5 {
//Create a function find(int a). Where a>0.
function find(int256 a) public pure returns (int256) {
require(a>0,"a should not be negative");
//Return the remainder when a is divided by 3.
return a % 3;
}
}

0 comments on commit 234696c

Please sign in to comment.