Skip to content

Instantly share code, notes, and snippets.

void main() {
var customerAccount = Bank('Dosu Roseline', 101110101, 500000);
print(customerAccount.availableBalance());
print( customerAccount.deposit(0));
print(customerAccount.withdrawal(5000000));
}
void main () {
addition(5, 7);
subtraction(5, 7);
division(5, 7);
multiplication(5, 7);
modulus(36, 7);
}
void addition (int a, int b) => print(a + b);
void main() {
for(int i = 1; i <= 30; i++) {
// display the number with string
print('The Number is at $i');
// display only odd numbers ranging from 1 to 30
if(i.isOdd) {
print(i);