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 16, 2022
1 parent 3a358fd commit 49c93f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 04Day-SolidityBasics.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;

//Create a function evaluate(int a , int b).
contract day4 {
//Subtract the difference of a and b from the sum of a and b
function evaluate(int256 a,int256 b) public pure returns (int256){
//Return the result of the above task from the evaluate()
return ((a+b)-(a-b));
}
}

0 comments on commit 49c93f4

Please sign in to comment.