Last active
December 12, 2018 18:22
-
-
Save mahimrocky/a7f88fbe86649536260c6d0f2035e70d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class account{ | |
int totalBalance = 0; | |
// then call data from DB | |
// show all data | |
int row = totalrow; | |
if(row>0){ | |
//take last row | |
totalBalance = lastrowBalance; | |
} | |
// now user can insert new credit or debit | |
if(isCredit){ | |
totalBalance += (+creditValue); | |
}else{ | |
totalBalance += (-debitValue); | |
} | |
insert-> credit,debit,balance; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment