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;
}}
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;
}}
When i run this program, it is showing balance is 0 for whatever value i take.. Please help me troubleshoot...
ReplyDeleteYou forgot to click on transact..
Delete