//Date: 17.09.2025
//Name: Rajaram Parida
//Redg: 2241016203
//Section: 28
//Exp. No.: 3.1
const int buttonPin = 8;
const int ledPin = 9;
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT_PULLUP);
pinMode(ledPin, OUTPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == LOW) {
digitalWrite(ledPin, LOW);
} else {
digitalWrite(ledPin, HIGH);
}
}