NAMA KELOMPOK :
1. M TAUFIQ IRVAN E (163600027)2. YULFI AINUN AL F (163600053)
Program :
int x,y,z,k;
void setup() {
Serial.begin(9600);
}
int jum (int x, int y){
z = x + y;
return z;
}
int kali (int x, int y){
z = x * y;
return z;
}
int bagi (int x, int y){
z = x / y;
return z;
}
void loop() {
k = jum(15,5);
Serial.print("jumlah =");
Serial.println(k);
delay(500);
k = kali(15,5);
Serial.print("kali =");
Serial.println(k);
delay(500);
k = bagi(15,5);
Serial.print("bagi =");
Serial.println(k);
delay(500);
}
BAGUS NILAI 75
BalasHapus