Last active
December 3, 2019 20:52
-
-
Save aabeben/19b05c0f14e170a9977615b93e77f956 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
String ucapkan(String zikir) { | |
var lafal = ''; | |
switch (zikir.toLowerCase()) { | |
case 'tasbih': | |
lafal = 'Subhanallah'; | |
break; | |
case 'tahmid': | |
lafal = 'Alhamdulillah'; | |
break; | |
case 'takbir': | |
lafal = 'Allahu Akbar'; | |
break; | |
default: | |
lafal = 'Wassalam'; | |
} | |
return lafal; | |
} | |
void main() { | |
List<String> kalimatTayyibah = ['Tasbih', 'Tahmid', 'Takbir']; | |
for (String zikir in kalimatTayyibah) { | |
for (var i = 0; i < 33;) { | |
print('${++i} ${ucapkan(zikir)}'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment