// listing demo ing inline functions

// #include iostream.h

inline
int Double(int);


void setup() {
  // open the serial port:
  Serial.begin(9600);

  int target=99;
  enum colour {     
    black,brown,red,orange,yellow,green,blue,purple,white      };
  Serial.print(" colour red is ");
  Serial.print( red );
  Serial.println();

  Serial.print("Enter a number to use: ");
  //read data

  Serial.println();
  target = Double(target);
  Serial.print("Target is :");
  Serial.print(target);
  target = Double(target);
  target = Double(target);
  target = Double(target);
}


int Double(int target) {
  return 2 * target;
}

void loop(){
  enum colour {
    black,brown,red,orange,yellow,green,blue,violet,grey,white      };
  while (1==1){
    Serial.print(" colour red is ");  
    Serial.print( red );
    Serial.println();
    delay(10000);
    Serial.print(" colour yellow is ");  
    Serial.print( yellow );
    Serial.println();
    delay(10000);
    Serial.print(" colour white is ");  
    Serial.print( white );
    Serial.println();
    delay(10000);
  }
}