Skip to content

ayushmanpathak9034/LOCK-IN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⛓️ Solidity Calculator Contract

πŸ“Œ Overview

This project contains a simple Solidity smart contract that performs basic arithmetic operations such as addition and subtraction.

It is designed to demonstrate the use of functions and basic logic in Solidity.


πŸ› οΈ Contract Details

  • Language: Solidity
  • Version: ^0.8.19
  • License: MIT
  • Type: Smart Contract
  • Platform: Ethereum-compatible networks

πŸ“„ Functions

βž• Addition

function addition(uint a, uint b) public pure returns (uint)

Returns the sum of two unsigned integers.


βž– Subtraction

function subtraction(uint a, uint b) public pure returns (uint)

Returns the difference between two unsigned integers.


πŸš€ How to Use

  1. Open Remix IDE: https://remix.ethereum.org

  2. Create a new Solidity file (e.g., calculator.sol)

  3. Paste the contract code

  4. Compile using Solidity compiler (^0.8.19)

  5. Deploy using:

    • JavaScript VM (for testing), or
    • MetaMask (for real networks)

πŸ“‚ Project Structure

.
β”œβ”€β”€ calculator.sol
└── README.md

🎯 Purpose

This project is intended for learning and understanding:

  • Basic Solidity syntax
  • Function creation
  • Arithmetic operations in smart contract
  • Pure Functions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors