Sunday 29 September 2019

Blockchain 2

pragma solidity ^0.4.0;
contract SimpleStorage{
    uint a;
    function initial( uint balu)public{
        a = balu;
    }
     function Shop1( uint balu)public{
        a = a-balu;
    }
     function Shop2(uint balu)public{
          a = a-balu;
    }
     function add(uint balu)public{
          a = a+balu;
    }
    function balance()public constant returns(uint){
        return a;
    }}

2 comments:

  1. When i run this program, it is showing balance is 0 for whatever value i take.. Please help me troubleshoot...

    ReplyDelete