String nama = "bayu setya ramadhn";
int8_t absensi = 21;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("============================");
Serial.println("=============================");
Serial.println("Nama : " + nama);
Serial.println("Absensi : " + String(absensi));
Serial.println("==============================");
Serial.println("operan Aritmatika + x / %");
Serial.println("==============================");
int jumlah = absensi + 15;
int kurang = absensi - 15;
int kali = absensi * 15;
float bagi = absensi / 15;
Serial.println(String(absensi) + " + 15 =" + String(absensi+15));
Serial.println(String(absensi) + " - 15 =" + String(kurang));
Serial.println(String(absensi) + " x 15 =" + String(kali));
Serial.println(String(absensi) + " / 15 =" + String(bagi));
Serial.println(String(absensi) + " % 15 =" + String(absensi % 15));
Serial.println();
Serial.println();
Serial.println("======================================");
Serial.println("compoound Asigmen += -= *= /= %= ");
int jumlah_plus = absensi ;
int kurang_plus = absensi ;
int kali_plus = absensi ;
float bagi_plus = absensi ;
int modulo_plus = absensi;
Serial.println(String(absensi) + " += 15 = " + String(jumlah_plus +=15));
Serial.println(String(absensi) + " -= 15 = " + String(kurang_plus -=15));
Serial.println(String(absensi) + " *= 15 = " + String(kali_plus *=15));
Serial.println(String(absensi) + " /= 15 = " + String(bagi_plus /= 15));
Serial.println(String(absensi) + " %= 15 = " + String(modulo_plus %= 15));
Serial.println();
Serial.println();
Serial.println("====================================");
Serial.println("Relation == != < > <= >= ");
Serial.println(String(absensi) + " == 15 = " + String(absensi == 15));
Serial.println(String(absensi) + " != 15 = " + String(absensi != 15));
Serial.println(String(absensi) + "< 15 = " + String(absensi < 15));
Serial.println(String(absensi) + "> 15 = " + String(absensi > 15));
Serial.println(String(absensi) + "<= 15 = " + String(absensi <= 15));
Serial.println(String(absensi) + ">= 15 = " + String(absensi >= 15));
Serial.println();
Serial.println();
Serial.println("======================================");
}
void loop() {
// put your main code here, to run repeatedly:
}