Created with <3 with dartpad.dev.
Created
September 4, 2023 03:15
-
-
Save dalhaqq/b31b5f1fecf4eb43dd9cd996ec8cef1a to your computer and use it in GitHub Desktop.
tugas-1
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
void main() { | |
try { | |
int a = 5~/0; | |
print(a); | |
} on UnsupportedError { | |
print("Operasi tidak didukung"); | |
} | |
try { | |
int a = 5~/0; | |
print(a); | |
} catch (e) { | |
print(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment