please i want to write this program nonrecursivly and i don't know how
can you help me?
void f(int[], int, int);
int main()
{ int a[]={2, 4, 6};
f(a, 0 , 2);
return 0; }
void f(int array[], int low, int high)
{ printf("%d ", array[low]);
if(low == high)
return;
else f(array, low + 1, high );
}
i know the output will be 2 4 6