Nguyễn Thu Trang
New member
What is the output of the following program?
A. 5
B. 5.2
C. 5.23
D. 5.231
Code:
void setup() {
Serial.begin(9600);
}
void loop() {
String s=String(5.231, 1);
Serial.println(s);
}
B. 5.2
C. 5.23
D. 5.231