int num = 4; // Declare the integer variable
char character = 'A';
void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
Serial.print("The value of num is: ");
Serial.println(num); // Print the integer on the same line
Serial.print("The character variable is: ");
Serial.println(character);
delay(1000); // Wait 1 second before repeating (optional)
}