Skip to content

Instantly share code, notes, and snippets.

@topex-psy
Created March 21, 2023 03:02
Show Gist options
  • Save topex-psy/dce4d5d6a842bd57c06e88a931b65877 to your computer and use it in GitHub Desktop.
Save topex-psy/dce4d5d6a842bd57c06e88a931b65877 to your computer and use it in GitHub Desktop.
Dart 1. Variabel
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