Skip to content

Instantly share code, notes, and snippets.

View oriohac's full-sized avatar
🎯
Focusing, let's keep working.

Orioha Chikezirim oriohac

🎯
Focusing, let's keep working.
View GitHub Profile
@oriohac
oriohac / main.dart
Last active October 21, 2022 02:13
Week 4: Imports and Classes
void main() {
Bank money = Bank();
money.availableBalance();
money.deposit(23999);
money.withdrawal(160000);
}
class Bank {
static const accountName = "Chike";
@oriohac
oriohac / main.dart
Created October 7, 2022 03:53
Calculator-weeek3-task
void main() {
print(add(5, 6));
//adds 5 and 6
print(sub(5, 6));
//subtract 6 from 5
print(mul(8, 2));
//multiply 8 by 2
print(div(8, 2));
//divide 8 by 2
print(mod(9, 2));
void main() {
oddNumbers();
}
oddNumbers(){
for(var i = 1; i <= 30; i++){
if(i%2 != 0){
print(i);
/*The output are odd numbers ranging from 1 to 29, as we print the