This file contains hidden or 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
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); |
This file contains hidden or 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
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); |
This file contains hidden or 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
void main() { | |
var customerAccount = Bank('Dosu Roseline', 101110101, 500000); | |
print(customerAccount.availableBalance()); | |
print( customerAccount.deposit(0)); | |
print(customerAccount.withdrawal(5000000)); | |
} | |