Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo9050 committed Feb 11, 2023
1 parent ab885bc commit 1b9d354
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Arithametic_Operations.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

contract Arithametic_Operations{
uint x;
uint y;

constructor (uint _x,uint _y) {
x=_x;
y=_y;
}
/*Function for adding numbers*/
function sum() public view returns(uint){
return x + y;
}

/*Function for subtracting numbers*/
function sub() public view returns(uint){
return x - y;
}
/*Function for multiplying numbers*/
function mul() public view returns(uint){
return x * y;
}
/*Function for dividing numbers*/
function div() public view returns(uint){
return x / y;
}

}

0 comments on commit 1b9d354

Please sign in to comment.