Extracting Last number of array that is not a zero

TolpuddleSartre:
Start from the end of the array, and work back.

yeah i figured that but i have tried with no luck

int myArray[10]={3, 8, 5, 6, 9, 2, 5, 6, 0, 0};
int lastNumber;

void setup() {

 Serial.begin(115200);
 
 
}

void loop() {

 for (int i = 9; i < 9; i--)
 if(i > 0){
  
    lastNumber = i;
    
    
  }
  
 Serial.println(lastNumber);
 
}