Dart

Tutorial Dasar Dart – Percabangan

Pinterest LinkedIn Tumblr
main() {
  var nilai = 0;

  if (nilai > 50) {
    print('Anda Lulus');
  } else if (nilai < 40) {
    print('Nilai anda terlalu rendah');
  } else {
    print('Anda Gagal');
  }
}

Founder & author di AkuNgeblog.com, Seorang penikmat coklat panas.

Write A Comment

Pin It