hi
if you want to make a number inverse then follow the follow the following code:
console.writeLine("Enter the position of the number for reverse :");
int no,rem,rev=0;
no= Console.ReadLine();
while(no!=0)
{
rem=no%10;
rev=rev*10+rem;
no=no/10;
}
if you want to inversion of the array then use the following:
int count,no,j,i;
<data type=""> array[],temp[];
for(i=0;i<array.lenght;i++);>
for(j=0;i>=0,j<array.lenght;i--,j++)>
{
temp[j]=array[i];
}
console.writeLine("your reverse array is:");
for(i=0;i<array.lenght;i++)>
{
console.writeLine(temp[i]);
}
</data>