Programming Examples

Arduino program to print odd numbers from 99 to 1


Write a  Arduino program to print odd numbers from 99 to 1

void setup()
{
  Serial.begin(9600);
  for(int a=99;a>0;a-=2)
  {
    Serial.println(a);
  }
}
void loop()
{
  
}
Output

99 97 95 93 91 89 87 85 83 81 79 77 75 73 71 69 67 65 63 61 59 57 55 53 51 49 47 45 43 41 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad