Created with <3 with dartpad.dev.
Created
March 21, 2023 03:02
-
-
Save topex-psy/dce4d5d6a842bd57c06e88a931b65877 to your computer and use it in GitHub Desktop.
Dart 1. Variabel
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() { | |
String nama = "Taufik"; | |
int umur = 20; | |
double tinggi = 175.35464; | |
bool isMarried = false; | |
bool isHasJob = true; | |
String bio = """ | |
Hello, I'm Taufik | |
I am Software Engineer | |
"""; | |
print("Nama\t: $nama"); | |
print("Umur\t: $umur"); | |
print("Tinggi\t: ${tinggi.toStringAsFixed(1)} cm"); | |
print("Sudah menikah\t: ${isMarried ? "Sudah" : "Belum"}"); | |
print("Sudah bekerja\t: ${isHasJob ? "Sudah" : "Belum"}"); | |
print("Bio:\n$bio"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment