Skip to content

Instantly share code, notes, and snippets.

@aabeben
Last active December 3, 2019 20:52
Show Gist options
  • Save aabeben/19b05c0f14e170a9977615b93e77f956 to your computer and use it in GitHub Desktop.
Save aabeben/19b05c0f14e170a9977615b93e77f956 to your computer and use it in GitHub Desktop.
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