#Bank-BT

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Bank{
    uint256 balance = 0;
    address public accOwner;

    constructor(){
        accOwner= msg.sender;
    }

    //deposite
    function Deposite() public payable {
        require(accOwner ==msg.sender, "You are not the owner of this account"); 
        require(msg.value > 0, "Amout should be greater than 0!");
        balance += msg.value;
        
    }

    //withdraw
    function Withdraw() public payable{
        require(accOwner == msg.sender, "You are not the owner of this account");
        require(msg.value >0, "Amount should be greater than 0!");
        balance-=msg.value;
    }

    //showbalance
    function showBalance() public view returns(uint256){
        require(accOwner == msg.sender, "You are not the owner of this account");
        return balance;
    }
}