Quote:
Originally Posted by subha040680
Can this be the solution?

Code:
void main()
{
  for(int cnt = 0; cnt < 5; ++cnt)
  {
    OutVar[cnt] = Arr[(i+1)%5] *Arr[(i+2)%5]*Arr[(i+3)%5]*Arr[(i+4)%5];
  }
}
Nice approch!!! But sorry dear i forgot to mention you cant use division or modular division operator.