float celsiusKeFahrenheit(float c) {
float f = c * 9 / 5 + 32;
return f;
}
void setup() {
Serial.begin(115200);
float hasil = celsiusKeFahrenheit(30);
Serial.println(hasil);
Serial.println(celsiusKeFahrenheit(100));
}
void loop() {
}
Loading
esp32-devkit-c-v4
esp32-devkit-c-v4