How do you plan to solve it?
To get a current of 10 mA, based on the given input voltage and drop voltage for the led we can say that the resistor should be (5-1.8)*1000/10 ohm
~=320 ohm sor as per the standard resistors available 330 ohm
/*Paste your code here*/
#define led 2
void setup() {
pinMode(led, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(led, HIGH); // LED is turn ON
delay(400); // waits for a 400 millisecond
digitalWrite(led, LOW); // LED is turn OFF
delay(800); // waits for a 800 millisecond
}
Add video of the output (know more)
Add a photo of your hardware showing the output.