-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a358fd
commit 49c93f4
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
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
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)); | ||
} | ||
} |