String nama = "Bintang";
int8_t absensi = 23;
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 + 23;
int kurang = absensi - 23;
int kali = absensi * 23;
float bagi = absensi / 23;
Serial.println(String(absensi) + " + 23 =" + String(absensi+23));
Serial.println(String(absensi) + " - 23 =" + String(kurang));
Serial.println(String(absensi) + " x 23 =" + String(kali));
Serial.println(String(absensi) + " / 23 =" + String(bagi));
Serial.println(String(absensi) + " % 23 =" + String(absensi % 23));
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) + " += 23 = " + String(jumlah_plus +=23));
Serial.println(String(absensi) + " -= 23 = " + String(kurang_plus -=23));
Serial.println(String(absensi) + " *= 23 = " + String(kali_plus *=23));
Serial.println(String(absensi) + " /= 23 = " + String(bagi_plus /= 23));
Serial.println(String(absensi) + " %= 23 = " + String(modulo_plus %= 23));
Serial.println();
Serial.println();
Serial.println("====================================");
Serial.println("Relation == != < > <= >= ");
Serial.println(String(absensi) + " == 23 = " + String(absensi == 23));
Serial.println(String(absensi) + " != 23 = " + String(absensi != 23));
Serial.println(String(absensi) + "< 23 = " + String(absensi < 23));
Serial.println(String(absensi) + "> 23 = " + String(absensi > 23));
Serial.println(String(absensi) + "<= 23 = " + String(absensi <= 23));
Serial.println(String(absensi) + ">= 23 = " + String(absensi >= 23));
Serial.println();
Serial.println();
Serial.println("======================================");
}
void loop() {
// put your main code here, to run repeatedly:
}