pragma solidity ^0.4.0;
contract SimpleStorage{
uint a;
uint shop_1=0;
uint shop_2=0;
function initial( uint balu)public{
a = balu;
}
function Shop1( uint balu)public{
a = a-balu;
shop_1=shop_1+balu;
}
function Shop2(uint balu)public{
a = a-balu;
shop_2=shop_2+balu;
}
function add(uint balu)public{
a = a+balu;
}
function balance()public constant returns(uint){
return a;
}
function shop_1balance()public constant returns(uint){
return shop_1;
} function shop_2balance()public constant returns(uint){
return shop_2;
}
}
No comments:
Post a Comment