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

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad