scale=2 print "\nCheck book program!\n" print " Remember, deposits are negative transactions.\n" print " Exit by a 0 transaction.\n\n" print "Initial balance? "; bal = read() bal /= 1 print "\n" while (1) { "current balance = "; bal "transaction? "; trans = read() if (trans == 0) break; bal -= trans bal /= 1 } quit
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ckbook.b | File | 330 B | 0644 |
|
pi.b | File | 1.16 KB | 0644 |
|
primes.b | File | 633 B | 0644 |
|
twins.b | File | 710 B | 0644 |
|